documentation-developer
documentation-developer copied to clipboard
Update and fix REST Ref
| Question | Answer |
|---|---|
| JIRA Ticket | N/A |
| Versions | 4.6 |
| Edition | All |
- Add
/segments' and/segment_groups'GETroutes - Add
DELETE /shipments/{identifier} - Fix confusion between PHP class and REST type.
/payment-method/→/payment-method- Fix
ObjectStateGroupUpdatebody's indent. - Fix some response example filenames to match their content.
- Fix some types in
AcceptorContent-Typeheaders. - Remove
Content-Typeheader from "GETwithout payload" routes. - Add some missing
Acceptheaders.
⚠️
- Difficulties with
<FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions">where tag and media-type don't match.
Preview: https://ez-systems-developer-documentation--2368.com.readthedocs.build/en/2368/api/rest_api/rest_api_reference/rest_api_reference.html
Checklist
- [ ] Text renders correctly
- [ ] Text has been checked with vale
- [ ] Description metadata is up to date
- [ ] Redirects cover removed/moved pages
- [ ] Code samples are working
- [ ] PHP code samples have been fixed with PHP CS fixer
- [ ] Added link to this PR in relevant JIRA ticket or code PR
There is still a lot of checks to do in ibexa-types.raml
I found several unused types.
There could be many reasons:
- Legit but route using it is missing?
- Belonged to a removed route?
- Confusion between PHP class and REST type?
- Typo?
- …
I just won't do it now.
The 57 unused types:
BasketLinesDataCatalogListContentMetadataUpdateStructContentStructContentTypeCreateStructContentTypeDraftContentTypeGroupCreateStructContentTypeGroupStructContentTypeGroupUpdateStructContentTypeUpdateStructContentUpdateStructCreateStructFacetBuilderFieldDefinitionCreateStructFieldDefinitionUpdateStructLanguageCreateStructLocationCreateStructMessageNotificationNotificationListOrderItemsListPasswordValidationContextPluralPolicyCreateStructPolicyDraftPolicyStructPolicyUpdateStructQueryRoleCreateStructRoleUpdateStructSearchResultSectionCreateStructSectionLimitationSectionStructSectionUpdateStructSortClauseSubtreeLimitationTargetTaxonomyEntryCreateStructTaxonomyEntryUpdateStructTranslationURLURLUpdateStructURLWildcardTranslationResultUrlQueryUsageSearchResultUserCreateStructUserGroupCreateStructUserGroupRoleAssignmentUserGroupUpdateStructUserPreferenceUserPreferenceListUserPreferenceSetStructUserRoleAssignmentUserTokenUpdateStructUserUpdateStructValueObject
(See #1901 test:type:usage for methodology)
It lacks or review but I’m self-confident enough to merge it. It can be fixed latter if needed.