P5-6517 add market resource (#32)

This commit is contained in:
Martin Carlsson
2021-01-12 15:09:48 +01:00
committed by GitHub
parent 1f016ee0c8
commit bd1b0e642b
5 changed files with 86 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ Welcome to the documentation for Photowall API 2.
* [Designers](designers.md)
* [Prices](prices.md)
* [Orders](orders.md)
* [Markets](markets.md)
## Authentication
+19
View File
@@ -0,0 +1,19 @@
# Markets
## List markets
```
curl -X GET https://api.photowall.com/markets/
```
## Show market
```
curl -X GET https://api.photowall.com/markets/1
```
## Update market
```
curl -X PUT https://api:5000/markets/1 -H "Content-Type: application/json" -d '{"price_adjustment": "1.25"}
```