Skip to content

Commit

Permalink
modified
Browse files Browse the repository at this point in the history
  • Loading branch information
DGclasher committed Aug 6, 2023
1 parent db94a73 commit e1448f0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ The quotes are sourced from a collection of inspiring and motivational quotes, m

Start using the API, docs are [here](docs/api.md)

## Contribution

---
#### [Contribution Guidelines](docs/CONTRIBUTE.md)
---
Binary file modified backend/restless/quotes/quotes.db
Binary file not shown.
11 changes: 5 additions & 6 deletions docs/CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@
```
source venv/bin/activate
```

+ Create `.env` file in the root directory of project with following items
+ Make the setup
```
TEST_USER=<a test user>
TEST_PASS=<password of test user>
make setup
```

+ Make the setup
+ Create a super user using `python3 manage.py createsuper user`, then in an `.env` file in the root directory of project, put the following
```
make setup
TEST_USER=<a test user>
TEST_PASS=<password of test user>
```

+ Run server
Expand Down
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
##### Example cURL

> ```javascript
> curl -X DELETE -H "Authorization: Token < your_auth_token >" -H "Content-Type: application/json" "https://restless.pythonanywhere.com/api/delete/author/100"
> curl -X DELETE -H "Authorization: Token < your_auth_token >" "https://restless.pythonanywhere.com/api/delete/author/100"
> ```
</details>
Expand Down Expand Up @@ -275,7 +275,7 @@
##### Example cURL

> ```javascript
> curl -X DELETE -H "Authorization: Token < your_auth_token >" -H "Content-Type: application/json" "https://restless.pythonanywhere.com/api/delete/quote/120"
> curl -X DELETE -H "Authorization: Token < your_auth_token >" "https://restless.pythonanywhere.com/api/delete/quote/120"
> ```
</details>

0 comments on commit e1448f0

Please sign in to comment.