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