Skip to content

Instantly share code, notes, and snippets.

@ealogar
Last active May 19, 2020 15:46
Show Gist options
  • Save ealogar/6060ab49fda1b6236c295c8c38ae656c to your computer and use it in GitHub Desktop.
Save ealogar/6060ab49fda1b6236c295c8c38ae656c to your computer and use it in GitHub Desktop.
Performance api mock
{
"swagger": "2.0",
"info": {
"description": "Mockbin example API",
"version": "1.0.0",
"title": "Performance",
"termsOfService": "https://www.telefonica.es/es/",
"contact": {
"name": "4th Platform team",
"email": "4pf@tid.es"
}
},
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"host": "postman-echo.com",
"x-fp-apiPrefix": "/performance",
"x-fp-health": "https://fn8zmyads1.execute-api.us-east-1.amazonaws.com/healthz",
"basePath": "/response-headers",
"x-fp-scopesDefinition": {
"write:echo2": "returns the information plus the payload"
},
"paths": {
"/": {
"post": {
"x-fp-scopes": [
"write:echo2"
],
"description": "The mockbin api returns the payload as string",
"summary": "Returns the payload as string",
"operationId": "postEcho",
"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