-
Notifications
You must be signed in to change notification settings - Fork 82
IBX-1430: Fix REST API reference #1615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I found the missing TODO: Found other wrongly indented sub-resources. |
- Fix indentation - Same self-closing tag format
string(150) "application/vnd.ibexa.api.AttributeGet+json type: AttributeList example: !include examples/product/catalog/attributes/id/GET/AttributeGet.json.example" PHP Warning: Invalid argument supplied for foreach() in /Users/adriendupuis/www/developer-documentation/tools/raml2html/vendor/raml-org/raml-php-parser/src/Method.php on line 147
And /views/{viewId} equivalent routes are not implemented
https://github.com/ibexa/rest/blob/v4.0.0/src/bundle/Resources/config/routing.yml#L276
https://github.com/ibexa/rest/blob/v4.1.5/src/lib/Server/Controller/Views.php#L88
…dent
/content/objectstategroups/objectstates doesn't exist; /content/objectstategroups/{objectStateGroupId}/objectstates does: https://github.com/ibexa/rest/blob/v4.0.0/src/bundle/Resources/config/routing.yml#L326
…indent
/content/types/{contenttypeid}/{fielddefinitionid} doesn't exist; /content/types/{contenttypeid}/fielddefinitions/{fielddefinitionid} does: https://github.com/ibexa/rest/blob/v4.0.0/src/bundle/Resources/config/routing.yml#L578
GET /content/types/{contenttypeid}/fieldDefinitions: https://github.com/ibexa/rest/blob/v4.0.0/src/bundle/Resources/config/routing.yml#L570
GET /content/types/{contentTypeId}/draft/fieldDefinitions: https://github.com/ibexa/rest/blob/v4.0.0/src/bundle/Resources/config/routing.yml#L611
/content/assets/assets/images/{assetId}/{assetSource} doesn't exist; only /content/assets/images/{assetId}/{assetSource}: https://github.com/ibexa/connector-dam/blob/v4.0.0/src/bundle/Resources/config/routing_rest.yaml#L9
/calendar/calendar/event doesn't exists; only /calendar/event: https://github.com/ibexa/calendar/blob/main/src/bundle/Resources/config/routing_rest.yaml
/commerce/basket/{basketId}/{basketId}/line doesn't exist while /commerce/basket/{basketId}/line does at https://github.com/ibexa/commerce-rest/blob/v4.0.0/src/bundle/Resources/config/routing.yaml#L67
/commerce/basket/{basketId}/{basketId}/line/{lineId} doesn't exist while /commerce/basket/{basketId}/line/{lineId} does at https://github.com/ibexa/commerce-rest/blob/v4.0.0/src/bundle/Resources/config/routing.yaml#L87
…tion/{languageCode}
/product/catalog/attributes/translation/{languageCode} doesn't exist while /product/catalog/attributes/translation/{identifier}/{languageCode} exists in https://github.com/ibexa/product-catalog/blob/v4.0.0/src/bundle/Resources/config/routing_rest.yaml#L69
Same format than in `/product/catalog/attribute_groups/translation/{id}/{languageCode}`
Co-authored-by: DominikaK <[email protected]>
Co-authored-by: DominikaK <[email protected]>
This is the tool that helped a lot on #1615 to test what was already in the reference and that will help to found missing entries.
docs/api/rest_api_reference/input/examples/content/objects/POST/ContentCreate.xml.example
Show resolved
Hide resolved
| queryParameters: | ||
| roleId: | ||
| description: Lists User Groups assigned to the given Role. | ||
| description: Lists User Groups assigned to the given Role (e.g. GET /user/users?roleId=/user/roles/1). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be /user/groups?roleId=/user/roles/1 💩
| description: Checks if there are Users directly assigned to the given Role. | ||
| remoteId: | ||
| description: Retrieves the User for the given remote ID (e.g. GET /user/users?remoteId=55dd9713db75145f374bbd0b4f60ad29). | ||
| description: Checks if there is a User for the given remote ID (e.g. GET /user/users?remoteId=55dd9713db75145f374bbd0b4f60ad29). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the examples, it should be HEAD instead of GET
Fix several indentation errors that hide some parts or create non-existing routes.
/calendar/calendar/event→/calendar/event/commerce/basket/{basketId}/{basketId}/line→/commerce/basket/{basketId}/line/content/assets/assets/images→/content/assets/images/content/locations/{path}/{locationId}→/content/locations/{path}(the two forms were existing and are now merged; the first one is not necessary as the location ID is always part of the location path.)/content/locations/{path}/childrenand/content/locations/{path}/urlaliaseswere absent from HTML output./content/objects's POST request example was badly indented./content/objectstategroups/objectstates→/content/objectstategroups/{objectStateGroupId}/objectstates/content/types/{contentTypeId}/{fieldDefinitionId}→/content/types/{contentTypeId}/fielddefinitions/{fieldDefinitionId}/content/views/{identifier}(/views/{viewId}equivalent is not implemented)/product/catalog/attributes/{id}'s request body example was absent from HTML output./product/catalog/attributes/translation/{languageCode}→/product/catalog/attributes/translation/{id}/{languageCode}/product/catalog/attribute_groups's 403 descriptions were incomplete or erroneous./user/users:HEADmethod.?roleId=/user/roles/1example to /user/groups because, on a clean install, the anonymous role1is not assigned to the Anonymous User but to its Anonymous User Group, and,/user/users?roleIdonly retrieves users with the given role directly assigned to them.