...
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": {
34 "name": "new",
35 "parent":{
36 "id": 0
37 }
38 },
39 "required": ["name", "parent"],
40 "properties": {
41 "name": {
42 "type": "string"
43 },
44 "parent": {
45 "type": "object",
46 "properties": {
47 "id": {
48 "type": "number"
49 }
50 }
51 }
52 },
53 "readOnly": false,
54 "externalDocs": {
55 "description": "create a new folder.",
56 "url": "https://box-content.readme.io/#create-a-new-folder"
57 },
58 "example": {
59 "name": "newname.jpg",
60 "parent": {
61 "id": "0"
62 }
63 }
64 }
65 }],
66 "responses": {
67 "200": {
68 "description": "Some response"
69 }
70 }
71 }
72 }
73 }
74}
View as plain text