1
0
Fork 0
mirror of synced 2024-06-14 08:24:48 +12:00

Update delete endpoints to be called destroy

This commit is contained in:
Andrew Kingston 2022-09-26 14:18:31 +01:00
parent 0ebfad7606
commit aa21f44a3e
8 changed files with 18 additions and 25 deletions

View file

@ -85,13 +85,6 @@
estree-walker "^2.0.1"
magic-string "^0.25.7"
"@rollup/plugin-json@^4.1.0":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-4.1.0.tgz#54e09867ae6963c593844d8bd7a9c718294496f3"
integrity sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==
dependencies:
"@rollup/pluginutils" "^3.0.8"
"@rollup/plugin-node-resolve@^11.2.1":
version "11.2.1"
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz#82aa59397a29cd4e13248b106e6a4a1880362a60"
@ -104,7 +97,7 @@
is-module "^1.0.0"
resolve "^1.19.0"
"@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0":
"@rollup/pluginutils@^3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==

View file

@ -1872,7 +1872,7 @@
}
},
"delete": {
"operationId": "delete",
"operationId": "destroy",
"summary": "Delete an application",
"tags": [
"applications"
@ -2160,7 +2160,7 @@
}
},
"delete": {
"operationId": "delete",
"operationId": "destroy",
"summary": "Delete a row",
"description": "Deletes a row within the specified table.",
"tags": [
@ -2371,7 +2371,7 @@
}
},
"delete": {
"operationId": "delete",
"operationId": "destroy",
"summary": "Delete a table",
"description": "Delete a table, this could be internal or external.",
"tags": [
@ -2556,7 +2556,7 @@
}
},
"delete": {
"operationId": "delete",
"operationId": "destroy",
"summary": "Delete a user",
"tags": [
"users"

View file

@ -1417,7 +1417,7 @@ paths:
application:
$ref: "#/components/examples/application"
delete:
operationId: delete
operationId: destroy
summary: Delete an application
tags:
- applications
@ -1592,7 +1592,7 @@ paths:
row:
$ref: "#/components/examples/row"
delete:
operationId: delete
operationId: destroy
summary: Delete a row
description: Deletes a row within the specified table.
tags:
@ -1717,7 +1717,7 @@ paths:
table:
$ref: "#/components/examples/table"
delete:
operationId: delete
operationId: destroy
summary: Delete a table
description: Delete a table, this could be internal or external.
tags:
@ -1827,7 +1827,7 @@ paths:
user:
$ref: "#/components/examples/user"
delete:
operationId: delete
operationId: destroy
summary: Delete a user
tags:
- users

View file

@ -75,7 +75,7 @@ write.push(
* @openapi
* /applications/{appId}:
* delete:
* operationId: delete
* operationId: destroy
* summary: Delete an application
* tags:
* - applications

View file

@ -81,7 +81,7 @@ write.push(
* @openapi
* /tables/{tableId}/rows/{rowId}:
* delete:
* operationId: delete
* operationId: destroy
* summary: Delete a row
* description: Deletes a row within the specified table.
* tags:

View file

@ -83,7 +83,7 @@ write.push(
* @openapi
* /tables/{tableId}:
* delete:
* operationId: delete
* operationId: destroy
* summary: Delete a table
* description: Delete a table, this could be internal or external.
* tags:

View file

@ -65,7 +65,7 @@ write.push(new Endpoint("put", "/users/:userId", controller.update))
* @openapi
* /users/{userId}:
* delete:
* operationId: delete
* operationId: destroy
* summary: Delete a user
* tags:
* - users

View file

@ -10,7 +10,7 @@ export interface paths {
"/applications/{appId}": {
get: operations["getById"];
put: operations["update"];
delete: operations["delete"];
delete: operations["destroy"];
};
"/applications/search": {
/** Based on application properties (currently only name) search for applications. */
@ -34,7 +34,7 @@ export interface paths {
/** Updates a row within the specified table. */
put: operations["update"];
/** Deletes a row within the specified table. */
delete: operations["delete"];
delete: operations["destroy"];
};
"/tables/{tableId}/rows/search": {
post: operations["search"];
@ -49,7 +49,7 @@ export interface paths {
/** Update a table, this could be internal or external. */
put: operations["update"];
/** Delete a table, this could be internal or external. */
delete: operations["delete"];
delete: operations["destroy"];
};
"/tables/search": {
/** Based on table properties (currently only name) search for tables. This could be an internal or an external table. */
@ -61,7 +61,7 @@ export interface paths {
"/users/{userId}": {
get: operations["getById"];
put: operations["update"];
delete: operations["delete"];
delete: operations["destroy"];
};
"/users/search": {
/** Based on user properties (currently only name) search for users. */
@ -756,7 +756,7 @@ export interface operations {
};
};
};
delete: {
destroy: {
parameters: {
path: {
/** The ID of the user which this request is targeting. */