...
1{
2 "swagger": "2.0",
3 "info": {
4 "description": "",
5 "version": "1.0.0",
6 "title": "issue#161",
7 "termsOfService": "http://helloreverb.com/terms/",
8 "contact": {
9 "name": "apiteam@wordnik.com"
10 },
11 "license": {
12 "name": "Apache 2.0",
13 "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
14 }
15 },
16 "host": "petstore.swagger.wordnik.com",
17 "basePath": "/v2",
18 "schemes": [
19 "http"
20 ],
21 "paths": {
22 "/folders": {
23 "post": {
24 "parameters": [{
25 "name": "requestBody",
26 "in": "body",
27 "description": "body parameter",
28 "required": true,
29 "schema": {
30 "type": "object",
31 "title": "body of creating folder",
32 "description": "body parameter of creating folder",
33 "default": "{\"name\":\"new\",\"parent\":{\"id\":\"0\"}}",
34 "required": ["name", "parent"],
35 "properties": {
36 "name": {
37 "type": "string"
38 },
39 "parent": {
40 "type": "object",
41 "properties": {
42 "id": {
43 "type": "number"
44 }
45 }
46 }
47 },
48 "readOnly": false,
49 "externalDocs": {
50 "description": "create a new folder.",
51 "url": "https://box-content.readme.io/#create-a-new-folder"
52 },
53 "example": {
54 "name": "newname.jpg",
55 "parent": {
56 "id": "0"
57 }
58 }
59 }
60 }],
61 "responses": {
62 "200": {
63 "description": "Some response"
64 }
65 }
66 }
67 }
68 }
69}
View as plain text