Skip to content

Commit

Permalink
Reorder endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Aug 29, 2024
1 parent 42ad919 commit 8ce09d9
Show file tree
Hide file tree
Showing 8 changed files with 732 additions and 195 deletions.
96 changes: 92 additions & 4 deletions packages/cma-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,27 @@
"responseType": "MenuItemDestroyTargetSchema",
"name": "destroy",
"rawName": "rawDestroy"
},
{
"returnsCollection": false,
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/menu-item/reorder",
"rel": "reorder",
"urlTemplate": "/menu-items/reorder",
"method": "POST",
"comment": "Reorders a set of menu items",
"urlPlaceholders": [],
"requestBodyType": "MenuItemReorderSchema",
"optionalRequestBody": false,
"requestStructure": {
"type": "menu_item",
"attributes": [],
"relationships": []
},
"queryParamsRequired": false,
"responseType": "MenuItemReorderJobSchema",
"deprecated": "This API call is to be considered private and might change without notice",
"name": "reorder",
"rawName": "rawReorder"
}
],
"namespace": "menuItems",
Expand Down Expand Up @@ -652,6 +673,27 @@
"responseType": "SchemaMenuItemDestroyTargetSchema",
"name": "destroy",
"rawName": "rawDestroy"
},
{
"returnsCollection": false,
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/schema-menu_item/reorder",
"rel": "reorder",
"urlTemplate": "/schema-menu-items/reorder",
"method": "POST",
"comment": "Reorders a set of schema menu items",
"urlPlaceholders": [],
"requestBodyType": "SchemaMenuItemReorderSchema",
"optionalRequestBody": false,
"requestStructure": {
"type": "schema_menu_item",
"attributes": [],
"relationships": []
},
"queryParamsRequired": false,
"responseType": "SchemaMenuItemReorderJobSchema",
"deprecated": "This API call is to be considered private and might change without notice",
"name": "reorder",
"rawName": "rawReorder"
}
],
"namespace": "schemaMenuItems",
Expand Down Expand Up @@ -776,6 +818,27 @@
"responseType": "UploadCollectionDestroyTargetSchema",
"name": "destroy",
"rawName": "rawDestroy"
},
{
"returnsCollection": false,
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/upload-collection/reorder",
"rel": "reorder",
"urlTemplate": "/upload-collections/reorder",
"method": "POST",
"comment": "Reorders a set of upload collections",
"urlPlaceholders": [],
"requestBodyType": "UploadCollectionReorderSchema",
"optionalRequestBody": false,
"requestStructure": {
"type": "upload_collection",
"attributes": [],
"relationships": []
},
"queryParamsRequired": false,
"responseType": "UploadCollectionReorderJobSchema",
"deprecated": "This API call is to be considered private and might change without notice",
"name": "reorder",
"rawName": "rawReorder"
}
],
"namespace": "uploadCollections",
Expand Down Expand Up @@ -969,6 +1032,26 @@
"responseType": "ItemTypeDestroyJobSchema",
"name": "destroy",
"rawName": "rawDestroy"
},
{
"returnsCollection": false,
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/item-type/reorder_fields_and_fieldsets",
"rel": "reorder_fields_and_fieldsets",
"urlTemplate": "/item-types/reorder-fields-and-fieldsets",
"method": "POST",
"comment": "Reorders a set of fields and fieldsets within the model",
"urlPlaceholders": [],
"requestBodyType": "ItemTypeReorderFieldsAndFieldsetsSchema",
"optionalRequestBody": false,
"requestStructure": {
"type": "*",
"attributes": [],
"relationships": []
},
"queryParamsRequired": false,
"responseType": "ItemTypeReorderFieldsAndFieldsetsJobSchema",
"deprecated": "This API call is to be considered private and might change without notice",
"rawName": "rawReorderFieldsAndFieldsets"
}
],
"namespace": "itemTypes",
Expand Down Expand Up @@ -3327,16 +3410,21 @@
"returnsCollection": false,
"docUrl": "https://www.datocms.com/docs/content-management-api/resources/webhook-call/resend_webhook",
"rel": "resend_webhook",
"urlTemplate": "/webhook_calls/${userId}/resend_webhook",
"urlTemplate": "/webhook_calls/${webhookCallId}/resend_webhook",
"method": "POST",
"comment": "Re-send the webhook call",
"urlPlaceholders": [
{
"variableName": "userId",
"isEntityId": false,
"relType": "UserData"
"variableName": "webhookCallId",
"isEntityId": true,
"relType": "WebhookCallData"
}
],
"entityIdPlaceholder": {
"variableName": "webhookCallId",
"isEntityId": true,
"relType": "WebhookCallData"
},
"optionalRequestBody": false,
"queryParamsRequired": false,
"name": "resendWebhook",
Expand Down
Loading

0 comments on commit 8ce09d9

Please sign in to comment.