Use this Bob's Burgers API to get information about your favorite characters and their best quotes or to add, update, or delete characters and quotes.
- Clone the repository with:
git clone https://github.com/kangjoa/api-project.git- Install dependencies:
npm install- Run the server in development mode:
nodemon serverUsers must sign up and log in with a valid username and password in order to use the API.
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /sign-up |
Create an account |
| POST | /login |
Get access to API with valid credentials |
Make a POST request to /sign-up with a username and password.
{
"username": "a_username",
"password": "a_password"
}Make a POST request to /login with a username and password.
{
"username": "a_username",
"password": "a_password"
}| Method | Endpoint | Purpose |
|---|---|---|
| GET | /characters |
Show all characters |
| GET | /characters/:characterId |
Show one character by ID |
| POST | /characters |
Create a character |
| PUT | /characters/:characterId |
Update a character |
| DELETE | /characters/:characterId |
Delete a character |
Make a POST request to /characters.
{
"name": "New character name",
"age": number
}Make a PUT request to /characters/:characterId to update character attributes.

Make a DELETE request to /characters/:characterId to delete a character.

| Method | Endpoint | Purpose |
|---|---|---|
| GET | /quotes |
Show all quotes |
| GET | /quotes/:quoteId |
Show one quote by ID |
| POST | /quotes |
Create a quote |
| PUT | /quotes/:quoteId |
Update a quote |
| DELETE | /quotes/:quoteId |
Delete a quote |
Make a POST request to /quotes. A quote must be associated with an existing character so create a character before creating the new quote.
{
"content": "Quote content",
"season": number,
"episode": number,
"characterId": "id for an existing character"
}Make a PUT request to /quotes/:quoteId to update quote attributes.
{
"content": "Updated quote content",
"season": updated number,
"episode": updated number,
"characterId": "id for an existing character"
}Make a DELETE request to /quotes/:quoteId to delete a quote.









