Skip to content

Instantly share code, notes, and snippets.

@ealogar
Last active January 28, 2020 17:39
Show Gist options
  • Save ealogar/63850e6ab3b9de9ffc06d851ef34aefe to your computer and use it in GitHub Desktop.
Save ealogar/63850e6ab3b9de9ffc06d851ef34aefe to your computer and use it in GitHub Desktop.
4p-mockbin
{
"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