mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	clarified openapi use (#3149)
This commit is contained in:
		| @@ -4,7 +4,7 @@ Immich uses the [Open API](https://swagger.io/specification/) standard to genera | ||||
|  | ||||
| ## Generator | ||||
|  | ||||
| OpenAPI is used to generate the client (Typescript, Dart) SDK. `openapi-generator-cli` can be installed [here](https://openapi-generator.tech/docs/installation/). When you add a new or modify an existing endpoint, you must run the command below to update the client SDK. | ||||
| OpenAPI is used to generate the client (Typescript, Dart) SDK. `openapi-generator-cli` can be installed [here](https://openapi-generator.tech/docs/installation/). The generated SDK is based on the `immich-openapi-specs.json` file, which is autogenerated by the server when running in development mode. The `immich-openapi-specs.json` file can be modified with `@nestjs/swagger` decorators used or referenced by controller endpoints. See the [NestJS OpenAPI docs](https://docs.nestjs.com/openapi/types-and-parameters) for more info. When you add a new endpoint or modify an existing one, you must run the command below to update the client SDK. | ||||
|  | ||||
| ```bash | ||||
| npm run api:generate # Run from the `server/` directory | ||||
|   | ||||
| @@ -26,7 +26,7 @@ Run all server checks with `npm run check:all` | ||||
|  | ||||
| ## OpenAPI | ||||
|  | ||||
| The Open API client libraries need to be regenerated whenever there are changes to the `immich-openapi-specs.json` file. See [Open API](/docs/developer/open-api.md) for more details. | ||||
| The OpenAPI client libraries need to be regenerated whenever there are changes to the `immich-openapi-specs.json` file. Note that you should not modify this file directly as it is auto-generated. See [OpenAPI](/docs/developer/open-api.md) for more details. | ||||
|  | ||||
| ## Database Migrations | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user