Update delete endpoints to be called destroy
This commit is contained in:
parent
e3bb57b97a
commit
02156387c7
|
@ -85,13 +85,6 @@
|
||||||
estree-walker "^2.0.1"
|
estree-walker "^2.0.1"
|
||||||
magic-string "^0.25.7"
|
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":
|
"@rollup/plugin-node-resolve@^11.2.1":
|
||||||
version "11.2.1"
|
version "11.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz#82aa59397a29cd4e13248b106e6a4a1880362a60"
|
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"
|
is-module "^1.0.0"
|
||||||
resolve "^1.19.0"
|
resolve "^1.19.0"
|
||||||
|
|
||||||
"@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0":
|
"@rollup/pluginutils@^3.1.0":
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
|
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
|
||||||
integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==
|
integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==
|
||||||
|
|
|
@ -1872,7 +1872,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"operationId": "delete",
|
"operationId": "destroy",
|
||||||
"summary": "Delete an application",
|
"summary": "Delete an application",
|
||||||
"tags": [
|
"tags": [
|
||||||
"applications"
|
"applications"
|
||||||
|
@ -2160,7 +2160,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"operationId": "delete",
|
"operationId": "destroy",
|
||||||
"summary": "Delete a row",
|
"summary": "Delete a row",
|
||||||
"description": "Deletes a row within the specified table.",
|
"description": "Deletes a row within the specified table.",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
@ -2371,7 +2371,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"operationId": "delete",
|
"operationId": "destroy",
|
||||||
"summary": "Delete a table",
|
"summary": "Delete a table",
|
||||||
"description": "Delete a table, this could be internal or external.",
|
"description": "Delete a table, this could be internal or external.",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
@ -2556,7 +2556,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"operationId": "delete",
|
"operationId": "destroy",
|
||||||
"summary": "Delete a user",
|
"summary": "Delete a user",
|
||||||
"tags": [
|
"tags": [
|
||||||
"users"
|
"users"
|
||||||
|
|
|
@ -1417,7 +1417,7 @@ paths:
|
||||||
application:
|
application:
|
||||||
$ref: "#/components/examples/application"
|
$ref: "#/components/examples/application"
|
||||||
delete:
|
delete:
|
||||||
operationId: delete
|
operationId: destroy
|
||||||
summary: Delete an application
|
summary: Delete an application
|
||||||
tags:
|
tags:
|
||||||
- applications
|
- applications
|
||||||
|
@ -1592,7 +1592,7 @@ paths:
|
||||||
row:
|
row:
|
||||||
$ref: "#/components/examples/row"
|
$ref: "#/components/examples/row"
|
||||||
delete:
|
delete:
|
||||||
operationId: delete
|
operationId: destroy
|
||||||
summary: Delete a row
|
summary: Delete a row
|
||||||
description: Deletes a row within the specified table.
|
description: Deletes a row within the specified table.
|
||||||
tags:
|
tags:
|
||||||
|
@ -1717,7 +1717,7 @@ paths:
|
||||||
table:
|
table:
|
||||||
$ref: "#/components/examples/table"
|
$ref: "#/components/examples/table"
|
||||||
delete:
|
delete:
|
||||||
operationId: delete
|
operationId: destroy
|
||||||
summary: Delete a table
|
summary: Delete a table
|
||||||
description: Delete a table, this could be internal or external.
|
description: Delete a table, this could be internal or external.
|
||||||
tags:
|
tags:
|
||||||
|
@ -1827,7 +1827,7 @@ paths:
|
||||||
user:
|
user:
|
||||||
$ref: "#/components/examples/user"
|
$ref: "#/components/examples/user"
|
||||||
delete:
|
delete:
|
||||||
operationId: delete
|
operationId: destroy
|
||||||
summary: Delete a user
|
summary: Delete a user
|
||||||
tags:
|
tags:
|
||||||
- users
|
- users
|
||||||
|
|
|
@ -75,7 +75,7 @@ write.push(
|
||||||
* @openapi
|
* @openapi
|
||||||
* /applications/{appId}:
|
* /applications/{appId}:
|
||||||
* delete:
|
* delete:
|
||||||
* operationId: delete
|
* operationId: destroy
|
||||||
* summary: Delete an application
|
* summary: Delete an application
|
||||||
* tags:
|
* tags:
|
||||||
* - applications
|
* - applications
|
||||||
|
|
|
@ -81,7 +81,7 @@ write.push(
|
||||||
* @openapi
|
* @openapi
|
||||||
* /tables/{tableId}/rows/{rowId}:
|
* /tables/{tableId}/rows/{rowId}:
|
||||||
* delete:
|
* delete:
|
||||||
* operationId: delete
|
* operationId: destroy
|
||||||
* summary: Delete a row
|
* summary: Delete a row
|
||||||
* description: Deletes a row within the specified table.
|
* description: Deletes a row within the specified table.
|
||||||
* tags:
|
* tags:
|
||||||
|
|
|
@ -83,7 +83,7 @@ write.push(
|
||||||
* @openapi
|
* @openapi
|
||||||
* /tables/{tableId}:
|
* /tables/{tableId}:
|
||||||
* delete:
|
* delete:
|
||||||
* operationId: delete
|
* operationId: destroy
|
||||||
* summary: Delete a table
|
* summary: Delete a table
|
||||||
* description: Delete a table, this could be internal or external.
|
* description: Delete a table, this could be internal or external.
|
||||||
* tags:
|
* tags:
|
||||||
|
|
|
@ -65,7 +65,7 @@ write.push(new Endpoint("put", "/users/:userId", controller.update))
|
||||||
* @openapi
|
* @openapi
|
||||||
* /users/{userId}:
|
* /users/{userId}:
|
||||||
* delete:
|
* delete:
|
||||||
* operationId: delete
|
* operationId: destroy
|
||||||
* summary: Delete a user
|
* summary: Delete a user
|
||||||
* tags:
|
* tags:
|
||||||
* - users
|
* - users
|
||||||
|
|
|
@ -10,7 +10,7 @@ export interface paths {
|
||||||
"/applications/{appId}": {
|
"/applications/{appId}": {
|
||||||
get: operations["getById"];
|
get: operations["getById"];
|
||||||
put: operations["update"];
|
put: operations["update"];
|
||||||
delete: operations["delete"];
|
delete: operations["destroy"];
|
||||||
};
|
};
|
||||||
"/applications/search": {
|
"/applications/search": {
|
||||||
/** Based on application properties (currently only name) search for applications. */
|
/** Based on application properties (currently only name) search for applications. */
|
||||||
|
@ -34,7 +34,7 @@ export interface paths {
|
||||||
/** Updates a row within the specified table. */
|
/** Updates a row within the specified table. */
|
||||||
put: operations["update"];
|
put: operations["update"];
|
||||||
/** Deletes a row within the specified table. */
|
/** Deletes a row within the specified table. */
|
||||||
delete: operations["delete"];
|
delete: operations["destroy"];
|
||||||
};
|
};
|
||||||
"/tables/{tableId}/rows/search": {
|
"/tables/{tableId}/rows/search": {
|
||||||
post: operations["search"];
|
post: operations["search"];
|
||||||
|
@ -49,7 +49,7 @@ export interface paths {
|
||||||
/** Update a table, this could be internal or external. */
|
/** Update a table, this could be internal or external. */
|
||||||
put: operations["update"];
|
put: operations["update"];
|
||||||
/** Delete a table, this could be internal or external. */
|
/** Delete a table, this could be internal or external. */
|
||||||
delete: operations["delete"];
|
delete: operations["destroy"];
|
||||||
};
|
};
|
||||||
"/tables/search": {
|
"/tables/search": {
|
||||||
/** Based on table properties (currently only name) search for tables. This could be an internal or an external table. */
|
/** 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}": {
|
"/users/{userId}": {
|
||||||
get: operations["getById"];
|
get: operations["getById"];
|
||||||
put: operations["update"];
|
put: operations["update"];
|
||||||
delete: operations["delete"];
|
delete: operations["destroy"];
|
||||||
};
|
};
|
||||||
"/users/search": {
|
"/users/search": {
|
||||||
/** Based on user properties (currently only name) search for users. */
|
/** Based on user properties (currently only name) search for users. */
|
||||||
|
@ -756,7 +756,7 @@ export interface operations {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
delete: {
|
destroy: {
|
||||||
parameters: {
|
parameters: {
|
||||||
path: {
|
path: {
|
||||||
/** The ID of the user which this request is targeting. */
|
/** The ID of the user which this request is targeting. */
|
||||||
|
|
Loading…
Reference in New Issue