Update documentation for CI/CD and new hostname

This commit is contained in:
Niklas Fondberg
2020-03-02 10:32:54 +01:00
committed by GitHub
parent 2ee08ed77d
commit 723aa1c026
5 changed files with 28 additions and 20 deletions
+5 -5
View File
@@ -3,24 +3,24 @@
## List designers
```
curl -X GET https://api2.photowall.com/designers/
curl -X GET https://api.photowall.com/designers/
```
## Show designer
```
curl -X GET https://api2.photowall.com/designers/1
curl -X GET https://api.photowall.com/designers/1
```
## Create designer
```
curl -X POST https://api2.photowall.com/designers/ -H "Content-Type: application/json" \
curl -X POST https://api.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"}'
```
curl -X PUT https://api.photowall.com/designers/1 -H "Content-Type: application/json" -d '{"name": "Spiderman"}'
```