UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

39 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resourceCreatedResponseSchema = exports.createResponseSchema = void 0; const createResponseSchema = (schemaName) => { return { description: schemaName, content: { 'application/json': { schema: { $ref: `#/components/schemas/${schemaName}`, }, }, }, }; }; exports.createResponseSchema = createResponseSchema; const resourceCreatedResponseSchema = (schemaName) => { return { headers: { location: { description: 'The location of the newly created resource.', schema: { type: 'string', format: 'uri', }, }, }, description: `The resource was successfully created.`, content: { 'application/json': { schema: { $ref: `#/components/schemas/${schemaName}`, }, }, }, }; }; exports.resourceCreatedResponseSchema = resourceCreatedResponseSchema; //# sourceMappingURL=create-response-schema.js.map