add docs for designers
This commit is contained in:
@@ -5,6 +5,7 @@ Welcome to the documentation for Photowall API 2.
|
|||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
* [Categories](categories.md)
|
* [Categories](categories.md)
|
||||||
|
* [Designers](designers.md)
|
||||||
* [Prices](prices.md)
|
* [Prices](prices.md)
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|||||||
@@ -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"}'
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user