Skip to content

Commit efef319

Browse files
committed
updated docs - referencing operationId
Signed-off-by: bidi <bidi@apidemia.com>
1 parent 569f73e commit efef319

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎docs/book/v2/component/module.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ Location: `src/<ModuleName>/src/RoutesDelegator.php`
300300
> This component is created only when a project type is API.
301301
302302
It is generated automatically and contains the basic description of the API endpoints found in this Module.
303-
Each endpoint gets an `operationId`, a name unique across the API, built from its handler class name without the `Handler` suffix and with a lowercase first letter (for example `getBookCollection` for `GetBookCollectionHandler`).
303+
Each endpoint gets an `operationId`, a name unique within the Module, built from its handler class name without the `Handler` suffix and with a lowercase first letter (for example `getBookCollection` for `GetBookCollectionHandler`).
304+
Keep it unique across the whole API as well, which holds as long as your entity names are unique.
304305
Once you extend the entities with additional fields, you will need to update the OpenAPI file manually.
305306

306307
Location: `src/<ModuleName>/src/OpenAPI.php`

‎docs/book/v2/naming-standards.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,15 @@ These are classes used to modify the database schema.
160160
- pattern: `Version` + _Timestamp_
161161
- example: `src/Core/src/App/src/Migration/Version20250407142911.php`
162162

163-
## OpenApi
163+
## OpenAPI
164164

165165
> Can only be created in API projects.
166166
167-
These are configuration classes where OpenApi specifications are registered.
167+
These are configuration classes where OpenAPI specifications are registered.
168168

169169
- location: `src/<ModuleName>/src`
170-
- pattern: `OpenApi`
171-
- example: `src/<ModuleName>/src/OpenApi.php`
170+
- pattern: `OpenAPI`
171+
- example: `src/<ModuleName>/src/OpenAPI.php`
172172

173173
## Repositories
174174

0 commit comments

Comments
 (0)