Last active
January 28, 2020 17:39
-
-
Save ealogar/63850e6ab3b9de9ffc06d851ef34aefe to your computer and use it in GitHub Desktop.
4p-mockbin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "Mockbin example API", | |
"version": "1.0.0", | |
"title": "Mockbin", | |
"termsOfService": "https://www.telefonica.es/es/", | |
"contact": { | |
"name": "4th Platform team", | |
"email": "[email protected]" | |
} | |
}, | |
"schemes": [ | |
"https" | |
], | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"host": "mock.baikalplatform.es", | |
"x-fp-apiPrefix": "/mockbin", | |
"x-fp-health": "https://mock.baikalplatform.com/mockbin/healthz", | |
"basePath": "/mockbin/request", | |
"x-fp-scopesDefinition": { | |
"write:echo": "returns the information plus the payload", | |
"read:ip": "returns the request information plus the requester IP" | |
}, | |
"paths": { | |
"/echo": { | |
"post": { | |
"x-fp-scopes": [ | |
"write:echo" | |
], | |
"description": "The mockbin api returns the payload as string", | |
"summary": "Returns the payload as string", | |
"operationId": "postEcho", | |
"responses": { | |
"200": { | |
"description": "OK", | |
"schema": { | |
"type": "object" | |
} | |
} | |
} | |
} | |
}, | |
"/ip": { | |
"get": { | |
"x-fp-scopes": [ | |
"read:ip" | |
], | |
"description": "The mockbin api returns the request information plus the requester IP", | |
"summary": "Mockbin returns the request information plus the requester IP", | |
"operationId": "getIp", | |
"responses": { | |
"200": { | |
"description": "OK", | |
"schema": { | |
"type": "object" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment