add docs for categories
This commit is contained in:
@@ -4,6 +4,7 @@ Welcome to the documentation for Photowall API 2.
|
|||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
|
* [Categories](categories.md)
|
||||||
* [Prices](prices.md)
|
* [Prices](prices.md)
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Categories
|
||||||
|
|
||||||
|
## List categories
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -X GET https://api2.photowall.com/categories/
|
||||||
|
```
|
||||||
|
|
||||||
|
## Show category
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -X GET https://api2.photowall.com/categories/1
|
||||||
|
```
|
||||||
|
|
||||||
|
## Update category
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -X PUT https://api2.photowall.com/categories/1 -H "Content-Type: application/json" -d '{"name": "Dogs"}'
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user