Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f1b28d

Browse files
authored
[DGR-2123] Remove incorrect payload attributes from collections PUT request (#102) (#103)
* docs: update collections API payload structure Fix documentation to remove incorrect payload attributes from the PUT request - Fix parameter documentation inconsistencies * Add response example to Collection PUT endpoint * Update payload structure for Collection create endpoint
1 parent 5189bbd commit 6f1b28d

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

apiary.apib

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,15 +2256,24 @@ To create one, you'll need to provide a collection name, a description, and indi
22562256
"collection": {
22572257
"name": "Collection name",
22582258
"description": "DESCRIPTION",
2259-
"public": true,
2260-
"organization_id": 1,
2261-
"groups_count": 0,
2262-
"groups": []
2259+
"public": true
22632260
}
22642261
}
22652262
22662263
+ Response 200 (application/json)
22672264
2265+
{
2266+
"collection": {
2267+
"id": "809fxsq0-fx89-11ef-8c4a-b7d12b7poib3",
2268+
"name": "Collection name",
2269+
"description": "DESCRIPTION",
2270+
"organization_id": 231,
2271+
"public": true,
2272+
"groups_count": 0,
2273+
"groups": []
2274+
}
2275+
}
2276+
22682277
## Collection [/v1/collections/{collection_id}]
22692278
### Update a Collection [PUT]
22702279
@@ -2290,14 +2299,28 @@ To create one, you'll need to provide a collection name, a description, and indi
22902299
"name": "Collection name",
22912300
"description": "DESCRIPTION",
22922301
"public": true,
2293-
"organization_id": 1,
2294-
"groups_count": 22,
22952302
"groups": [{"id": 1}, {"id": 2}, {"id": 3}]
22962303
}
22972304
}
22982305
22992306
+ Response 200 (application/json)
23002307
2308+
{
2309+
"collection": {
2310+
"id": "809fxsq0-fx89-11ef-8c4a-b7d12b7poib3",
2311+
"name": "Collection name",
2312+
"description": "DESCRIPTION",
2313+
"organization_id": 231,
2314+
"public": true,
2315+
"groups_count": 3,
2316+
"groups": [
2317+
{"id": 1},
2318+
{"id": 2},
2319+
{"id": 3}
2320+
]
2321+
}
2322+
}
2323+
23012324
### Delete a Collection [DELETE]
23022325
23032326
+ Parameters

0 commit comments

Comments
 (0)