add docs for designers

This commit is contained in:
Martin
2016-09-04 18:36:05 +02:00
parent 1eb41a8b9e
commit 01c1fee30d
2 changed files with 27 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ Welcome to the documentation for Photowall API 2.
## Resources
* [Categories](categories.md)
* [Designers](designers.md)
* [Prices](prices.md)
## Authentication
+26
View File
@@ -0,0 +1,26 @@
# Designers
## List designers
```
curl -X GET https://api2.photowall.com/designers/
```
## Show designer
```
curl -X GET https://api2.photowall.com/designers/1
```
## Create designer
```
curl -X POST https://api2.photowall.com/designers/ -H "Content-Type: application/json" \
-d '{"name": "Spiderman", "username": "spiderman", "territory": "US", "currency": "USD"}'
```
## Update designer
```
curl -X PUT https://api2.photowall.com/designers/1 -H "Content-Type: application/json" -d '{"name": "Spiderman"}'
```