-
Notifications
You must be signed in to change notification settings - Fork 82
IBX-1430: Complete 4.4 REST API reference #1642
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
d889c05 to
86374db
Compare
c1ce916 to
7c4800c
Compare
| description: OK - The basket has been deleted | ||
| 400: | ||
| description: Error - The basket does not exist | ||
| 403: |
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.
Notice:
This the 403 from Ibexa\Commerce\Rest\Service\ValueObjectVisitor\ValidationResponse
not the usual 401 from Ibexa\Rest\Server\Output\ValueObjectVisitor\UnauthorizedException
d039175 to
b431958
Compare
|
I'll now target 4.4 I see a lot of depreciation in ez-commerce.raml 😓 😛 |
|
I split this REST API ref. update. I'll continue in another one. Here are added 32 pairs (method+route), few existing ones are fixed, that's a lot to review. There is still a lot to improve (examples addition, being sure that every possible responses are covered, enhance the |
33f6b7e to
2b50cbd
Compare
/content/objects: ez-content-object.raml → ez-content-objects.raml /content/locations: ez-content-location.raml → ez-content-location.raml /content/sections: ez-content-section.raml → ez-content-sections.raml
- GET /content/objects/{contentId}/versions/{versionNo}/schedule
- PUT /content/objects/{contentId}/versions/{versionNo}/schedule/{publicationTimestamp}
- PATCH /content/objects/{contentId}/versions/{versionNo}/schedule/{publicationTimestamp}
Prefixed /api/datebasedpublisher/v1 instead of /api/ibexa/v2
- GET /content/objects/{contentId}/versions/{versionNo}/schedule
- PUT /content/objects/{contentId}/versions/{versionNo}/schedule/{publicationTimestamp}
- PATCH /content/objects/{contentId}/versions/{versionNo}/schedule/{publicationTimestamp}
When a route had more than one sub-routes, its methods were skipped at HTML generation time.
```
/tmp:
displayName: 1st level route
get:
displayName: Immediate GET
/first:
get:
displayName: Test a URI element
```
was documenting
- GET /tmp
- GET /tmp/first
while
```
/tmp:
displayName: 1st level route
get:
displayName: Immediate GET
/first:
get:
displayName: Test a URI element
/second:
post:
displayName: Test another URI element
```
was only documenting
- GET /tmp/first
- GET /tmp/second
and was skipping GET /tmp
e9807b6 to
74a8238
Compare
# Conflicts: # docs/api/rest_api/rest_api_reference/input/ez.raml # docs/api/rest_api/rest_api_reference/rest_api_reference.html
|
After being merged into |
Update/Complete REST API reference
Update namespace ((kept for another latter PR)xmlns) fromez.notoibexa.coAdd a(moved to IBX-6107: REST API ref tester #1901)testcommand to compare the built reference against real routing configurationbuildcommand's templates to quit skipping some methodsRelated and dependencies:
Needs ibexa/scheduler#76 to properly document scheduler APIChangelog:
GET /content/types/{contentTypeId}/fieldDefinitionsGET /content/types/{contentTypeId}/draftGET /content/types/{contentTypeId}/draft/fieldDefinitionsPOST /content/objects/{contentId}/hidePOST /content/objects/{contentId}/revealGET /product/catalog/attribute_typesGET /product/catalog/attribute_types/{identifier}GET /product/catalog/regions/{identifier}DELETE /commerce/basket/{basketId}POST /cartPOST /cart/viewGET /cart/{identifier}DELETE /cart/{identifier}PATCH /cart/{identifier}GET /cart/{identifier}/entryDELETE /cart/{identifier}/entry/{entryId}PATCH /cart/{identifier}/entry/{entryId}POST /cart/{identifier}/emptyGET /cart/{identifier}/summaryGET /user/currentPOST /user/groups/subgroupsGET /user/users/{userId}/draftsGET /user/users/{userId}/segmentsPOST /user/users/{userId}/segmentsDELETE /user/users/{userId}/segments/{segmentIdentifier}GET /taxonomy/{taxonomyName}/entry/{id}GET /taxonomy/{taxonomyName}/entry/identifier/{identifier}GET /taxonomy/{taxonomyName}/entry/content-id/{contentId}DELETE /taxonomy/{taxonomyName}/entriesPOST /taxonomy/{taxonomyName}/entries/moveGET /taxonomy/{taxonomyName}/entry-assignment/{id}GET /taxonomy/{taxonomyName}/entry-assignments/content-id/{contentId}POST /commerce/common/check_sku_file/{mode}routePOST /product/catalog/attributes/viewresponse body RAML syntaxPOST /product/catalog/attribute_groups/viewresponse bodyPOST /product/catalog/products/viewresponse bodyPOST /product/catalog/product_types/viewresponse bodyPOST /product/catalog/product_variants/view/{baseProductCode}missing route argumentNot treated and kept for an other latter PR:
/content/binary//languages//segments/and/segment_groups//personalization/v1//views/