Create a sets
METHOD: POST
ENDPOINT: /api/v2/sets/
AUTHENTICATED: No
The request body is a JSON representation of the sets being created.
POST https://ushv3.dev/api/v2/sets
|
Listing all sets
METHOD: GET
ENDPOINT: /api/v2/sets/
AUTHENTICATED: No
Name | Type | Description |
---|---|---|
q | Optional | Only sets containing this search string will be returned, matched against 'name' property |
name | Optional | Only sets with a matching 'name' will be returned |
user_id | Optional | Only sets with this user_id will be returned |
order | Optional | Returned sets will be sorted in this order: ASC or DESC. Default: DESC |
order_by | Optional | Returned sets will be sorted by this field. Default: created |
limit | Optional | Limit number of results returned. Default: 50. Max: 500 |
offset | Optional | Sets returned will be offset by this number of results |
GET https://ushv3.dev/api/v2/sets
|
GET https://ushv3.dev/api/v2/sets?q=Explo
|
Get a single set
METHOD: GET
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: Yes
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the set being updated. |
GET http://ushv3.dev/api/v2/sets/1
|
Update a set
METHOD: PUT
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: Yes
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the set being updated. |
PUT http://ushv3.dev/api/v2/sets/1
|
Deleting a set
METHOD: DELETE
ENDPOINT: /api/v2/sets/:id
AUTHENTICATED: YES
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the set being deleted. |
DELETE /api/v2/sets/2
|