|
|
|
@ -77,7 +77,7 @@ POST /quotes
|
|
|
|
|
curl --request POST --header 'X-Quotes-API-Key: SECRET_KEY' --data 'id=28&date=2018-01-01&game=IRL&text=Cheese?' 'https://tld.example/api/quotes'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Note: the quote is replaced if it exists already
|
|
|
|
|
*Note: the quote is replaced if it exists already*
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ PUT /quotes/:id
|
|
|
|
|
curl --request PUT --header 'X-Quotes-API-Key: SECRET_KEY' --data 'date=2018-01-01&game=IRL&text=Cheese?' 'https://tld.example/api/quotes/28'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Note: the quote is created if it doesn't exist yet
|
|
|
|
|
*Note: the quote is created if it doesn't exist yet*
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
|
|