Skip to content

Instantly share code, notes, and snippets.

@KFoxder
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save KFoxder/2bbb812b6a1c76ae80de to your computer and use it in GitHub Desktop.

Select an option

Save KFoxder/2bbb812b6a1c76ae80de to your computer and use it in GitHub Desktop.

Revisions

  1. KFoxder revised this gist Feb 7, 2015. 1 changed file with 23 additions and 36 deletions.
    59 changes: 23 additions & 36 deletions testv1.json
    Original file line number Diff line number Diff line change
    @@ -1,39 +1,26 @@
    {
    "apiVersion": "0.0.4542.22887",
    "swaggerVersion": "1.0",
    "basePath": "http://local.api.com/api",
    "resourcePath": "/donuts",
    "apis": [
    "swaggerVersion": "1.2",
    "basePath": "http://localhost:8000/greetings",
    "apis": [
    {
    "path": "/hello/{subject}",
    "operations": [
    {
    "path": "/donuts/{page}/{pagesize}",
    "description": "Get donuts by page",
    "operations": [
    {
    "httpMethod": "GET",
    "notes": "Get a donut with page and size",
    "nickname": "getDonutsByPageAndSize",
    "summary": "Get a collection of donuts by page and pagesize.",
    "parameters": [
    {
    "name": "page",
    "description": "the page of the collection",
    "dataType": "int",
    "required": true,
    "allowMultiple": false,
    "paramType": "path"
    },
    {
    "name": "pagesize",
    "description": "the size of the collection",
    "dataType": "int",
    "required": true,
    "allowMultiple": false,
    "paramType": "path"
    }
    ],
    "errorResponses": [ ]
    }
    ]
    },
    ]
    "method": "GET",
    "summary": "Greet our subject with hello!",
    "type": "string",
    "nickname": "helloSubject",
    "parameters": [
    {
    "name": "subject",
    "description": "The subject to be greeted.",
    "required": true,
    "type": "string",
    "paramType": "path"
    }
    ]
    }
    ]
    }
    ]
    }
  2. KFoxder renamed this gist Feb 7, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. KFoxder created this gist Feb 7, 2015.
    39 changes: 39 additions & 0 deletions testv1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    {
    "apiVersion": "0.0.4542.22887",
    "swaggerVersion": "1.0",
    "basePath": "http://local.api.com/api",
    "resourcePath": "/donuts",
    "apis": [
    {
    "path": "/donuts/{page}/{pagesize}",
    "description": "Get donuts by page",
    "operations": [
    {
    "httpMethod": "GET",
    "notes": "Get a donut with page and size",
    "nickname": "getDonutsByPageAndSize",
    "summary": "Get a collection of donuts by page and pagesize.",
    "parameters": [
    {
    "name": "page",
    "description": "the page of the collection",
    "dataType": "int",
    "required": true,
    "allowMultiple": false,
    "paramType": "path"
    },
    {
    "name": "pagesize",
    "description": "the size of the collection",
    "dataType": "int",
    "required": true,
    "allowMultiple": false,
    "paramType": "path"
    }
    ],
    "errorResponses": [ ]
    }
    ]
    },
    ]
    }