Update samples' dependencies

This commit is contained in:
Andy Wilkinson
2022-01-12 12:11:05 +00:00
parent 11f870202a
commit 87e9b58201
24 changed files with 671 additions and 216 deletions

View File

@@ -17,6 +17,10 @@ includes:
search: true
code_clipboard: true
meta:
- name: description
content: Documentation for the Kittn API
---
# Introduction
@@ -45,7 +49,7 @@ api = kittn.authorize('meowmeowmeow')
```shell
# With shell, you can just pass the correct header with each request
curl "api_endpoint_here"
curl "api_endpoint_here" \
-H "Authorization: meowmeowmeow"
```
@@ -86,7 +90,7 @@ api.kittens.get()
```
```shell
curl "http://example.com/api/kittens"
curl "http://example.com/api/kittens" \
-H "Authorization: meowmeowmeow"
```
@@ -152,7 +156,7 @@ api.kittens.get(2)
```
```shell
curl "http://example.com/api/kittens/2"
curl "http://example.com/api/kittens/2" \
-H "Authorization: meowmeowmeow"
```
@@ -206,8 +210,8 @@ api.kittens.delete(2)
```
```shell
curl "http://example.com/api/kittens/2"
-X DELETE
curl "http://example.com/api/kittens/2" \
-X DELETE \
-H "Authorization: meowmeowmeow"
```