Skip to content

Instantly share code, notes, and snippets.

@ealogar
Last active March 29, 2022 16:36
Show Gist options
  • Save ealogar/f7e380cd9f8054ac573a47ac2602a261 to your computer and use it in GitHub Desktop.
Save ealogar/f7e380cd9f8054ac573a47ac2602a261 to your computer and use it in GitHub Desktop.
4p_mock_501
{
"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": [
"http"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"host": "mockbin.org",
"x-fp-apiPrefix": "/mockbin",
"x-fp-health": "https://mock.baikalplatform.com/mockbin/healthz",
"basePath": "/bin/a7ea0bd9-167b-4dc6-b5bf-71fd5e663e08",
"x-fp-scopesDefinition": {
"write:echo": "returns the information plus the payload",
"read:ip": "returns the request information plus the requester IP"
},
"paths": {
"/501": {
"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