Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
API Management Tips & Tricks
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "Sample API"
},
"host": "localhost:44321",
"basePath": "/",
"schemes": [ "https" ],
"paths": {
"/values": {
"get": {
"tags": [
"Values"
],
"operationId": "ValuesGet",
"produces": [
"text/plain",
"application/json",
"text/json"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Responses.ValueResponseCollection"
}
}
},
"deprecated": false
}
},
"/values/{id}": {
"get": {
"tags": [
"Values"
],
"operationId": "ValuesByIdGet",
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "integer",
"format": "int32"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Responses.ValueResponse"
}
}
},
"deprecated": false
}
}
},
"definitions": {
"Responses.ValueResponseCollection": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"$ref": "#/definitions/Responses.ValueResponse"
}
}
}
},
"Responses.ValueResponse": {
"type": "object",
"properties": {
"result": {
"type": "string"
}
}
}
},
"securityDefinitions": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment