Advertisement
Guest User

Untitled

a guest
May 11th, 2017
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.27 KB | None | 0 0
  1. {
  2.  
  3.     "swagger": "2.0",
  4.     "info": {
  5.         "description": "The Application",
  6.         "version": "1.0.0",
  7.         "title": "Sample REST Application",
  8.         "contact": {
  9.             "name": "users@cxf.apache.org"
  10.         },
  11.         "license": {
  12.             "name": "Apache 2.0 License",
  13.             "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  14.         }
  15.     },
  16.     "basePath": "/services/helloservice",
  17.     "tags": [
  18.         {
  19.             "name": "sayHello"
  20.         },
  21.         {
  22.             "name": "sayHello2"
  23.         }
  24.     ],
  25.     "paths": {
  26.         "/sayHello/{a}": {
  27.             "get": {
  28.                 "tags": [
  29.                     "sayHello"
  30.                 ],
  31.                 "operationId": "sayHello",
  32.                 "produces": [
  33.                     "text/plain"
  34.                 ],
  35.                 "parameters": [
  36.                     {
  37.                         "name": "a",
  38.                         "in": "path",
  39.                         "required": true,
  40.                         "type": "string"
  41.                     }
  42.                 ],
  43.                 "responses": {
  44.                     "200": {
  45.                         "description": "successful operation",
  46.                         "schema": {
  47.                             "type": "string"
  48.                         },
  49.                         "headers": { }
  50.                     }
  51.                 }
  52.             }
  53.         },
  54.         "/sayHello2/{a}": {
  55.             "get": {
  56.                 "tags": [
  57.                     "sayHello2"
  58.                 ],
  59.                 "operationId": "sayHello_1",
  60.                 "produces": [
  61.                     "text/plain"
  62.                 ],
  63.                 "parameters": [
  64.                     {
  65.                         "name": "a",
  66.                         "in": "path",
  67.                         "required": true,
  68.                         "type": "string"
  69.                     }
  70.                 ],
  71.                 "responses": {
  72.                     "200": {
  73.                         "description": "successful operation",
  74.                         "schema": {
  75.                             "type": "string"
  76.                         },
  77.                         "headers": { }
  78.                     }
  79.                 }
  80.             }
  81.         }
  82.     }
  83.  
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement