diff --git a/docs/README.md b/docs/README.md index d44a90a..61366ba 100644 --- a/docs/README.md +++ b/docs/README.md @@ -5,6 +5,7 @@ Welcome to the documentation for Photowall API 2. ## Resources * [Categories](categories.md) +* [Designers](designers.md) * [Prices](prices.md) ## Authentication diff --git a/docs/designers.md b/docs/designers.md new file mode 100644 index 0000000..b923efb --- /dev/null +++ b/docs/designers.md @@ -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"}' +``` \ No newline at end of file