New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

exframe-api

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exframe-api - npm Package Compare versions

Comparing version 0.4.7 to 0.4.8

4

package.json
{
"name": "exframe-api",
"version": "0.4.7",
"version": "0.4.8",
"description": "exframe-api",

@@ -48,3 +48,3 @@ "main": "index.js",

},
"gitHead": "d9641658b6e0f058726402b7fe6a859cfd4b11ab"
"gitHead": "ef914cbc30e856ef4d8509c6696e56ad1cae7031"
}

@@ -52,4 +52,16 @@ const ParameterList = require('./ParameterList');

}
patch(operationOptions, ...middleware) {
this.operation('patch', operationOptions, ...middleware);
return this;
}
delete(operationOptions, ...middleware) {
this.operation('delete', operationOptions, ...middleware);
return this;
}
}
module.exports = Operations;

@@ -206,2 +206,112 @@ {

}
},
"patch": {
"summary": "Patch the resource",
"description": "make partial changes in the existing resource data",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Result",
"properties": {
"result": {
"$ref": "#/components/schemas/resource"
},
"message": {
"type": "string"
}
}
}
}
}
},
"400": {
"description": "Invalid Parameters",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/resource"
}
}
}
}
},
"delete": {
"summary": "Delete the resource",
"description": " delete the resource data",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Result",
"properties": {
"result": {
"$ref": "#/components/schemas/resource"
},
"message": {
"type": "string"
}
}
}
}
}
},
"400": {
"description": "Invalid Parameters",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/resource"
}
}
}
}
}

@@ -208,0 +318,0 @@ }

@@ -107,3 +107,33 @@ 'use strict';

}
)
.patch(
{
summary: 'Patch the resource',
description: 'make partial changes in the existing resource data',
body: content.json(schema.ref(components.schema('resource'))),
configureSchema: ({ responses }) => {
addSuccessResponse(responses, schema.ref(components.schema('resource')));
addErrorResponse(responses, 404);
addErrorResponse(responses, 400);
}
},
(request, response) => {
response.json({ message: 'success', result: { value: 1 } });
}
)
.delete(
{
summary: 'Delete the resource',
description: ' delete the resource data',
body: content.json(schema.ref(components.schema('resource'))),
configureSchema: ({ responses }) => {
addSuccessResponse(responses, schema.ref(components.schema('resource')));
addErrorResponse(responses, 404);
addErrorResponse(responses, 400);
}
},
(request, response) => {
response.json({ message: 'success', result: { value: 1 } });
}
);
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc