add docs for categories

This commit is contained in:
Martin
2016-09-04 18:35:41 +02:00
parent 1541119e3c
commit 1eb41a8b9e
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -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
+19
View File
@@ -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"}'
```