Comparing version 0.4.18 to 0.4.19
{ | ||
"name": "remult", | ||
"version": "0.4.18", | ||
"version": "0.4.19", | ||
"description": "remult core lib", | ||
@@ -5,0 +5,0 @@ "homepage": "https://remult.github.io/", |
@@ -138,2 +138,3 @@ "use strict"; | ||
var apiPathWithId = spec.paths['/api/' + key + "/{id}"] = {}; | ||
//https://github.com/2fd/open-api.d.ts | ||
apiPath.get = secure(meta.options.allowApiRead, true, { | ||
@@ -204,3 +205,6 @@ description: "return an array of " + key + ". supports filter operators", | ||
}; | ||
apiPath.post = secure(meta.options.allowApiInsert, false, tslib_1.__assign(tslib_1.__assign({ "summary": "insert a " + key, "description": "insert a " + key, "produces": ["application/json"] }, itemInBody), { "responses": tslib_1.__assign({ "201": { | ||
apiPath.post = secure(meta.options.allowApiInsert, false, tslib_1.__assign(tslib_1.__assign({ | ||
//"summary": "insert a " + key, | ||
//"description": "insert a " + key, | ||
"produces": ["application/json"] }, itemInBody), { "responses": tslib_1.__assign({ "201": { | ||
"description": "Created", | ||
@@ -219,3 +223,3 @@ "content": { | ||
"200": { | ||
"description": "returns an item of " + key, | ||
// "description": "returns an item of " + key, | ||
"content": { | ||
@@ -231,3 +235,6 @@ "application/json": { | ||
}); | ||
apiPathWithId.put = secure(meta.options.allowApiUpdate, false, tslib_1.__assign(tslib_1.__assign({ "summary": "Update a " + key, "description": "Update a " + key, "produces": ["application/json"], "parameters": [ | ||
apiPathWithId.put = secure(meta.options.allowApiUpdate, false, tslib_1.__assign(tslib_1.__assign({ | ||
//"summary": "Update a " + key, | ||
//"description": "Update a " + key, | ||
"produces": ["application/json"], "parameters": [ | ||
idParameter | ||
@@ -245,4 +252,4 @@ ] }, itemInBody), { "responses": tslib_1.__assign({ "200": { | ||
apiPathWithId.delete = secure(meta.options.allowApiDelete, false, { | ||
"summary": "Delete a " + key, | ||
"description": "Delete a " + key, | ||
// "summary": "Delete a " + key, | ||
// "description": "Delete a " + key, | ||
"produces": ["application/json"], | ||
@@ -249,0 +256,0 @@ "parameters": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
612529
9247