UNPKG

api-flow

Version:

A flow written in ES6 using Immutable to convert between API description formats (Swagger, etc.) and other programs such as cURL command lines.

19 lines (18 loc) 419 B
--- swagger: '2.0' host: basic-auth-server.herokuapp.com schemes: - http - https securityDefinitions: basicAuth: type: basic description: HTTP Basic Authentication. Works over `HTTP` and `HTTPS` paths: /: get: security: - basicAuth: [] responses: 200: description: Will send `Authenticated` if authentication is succesful, otherwise it will send `Unauthorized`