Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmchugh111 committed Aug 23, 2024
1 parent 49682bc commit beeffe7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ This is the backend API repository for TurLink. TurLink is a link shortener app
}
}
```
- Error Response (422 Unprocessable Entity):
- Error Response (422 Unprocessable Entity) -- when original link isn't entered:
```json
{
"errors": [
Expand All @@ -136,7 +136,7 @@ This is the backend API repository for TurLink. TurLink is a link shortener app
]
}
```
- Error Response (404 Not Found):
- Error Response (404 Not Found) -- when user_id is not valid:
```json
{
"errors": [
Expand Down Expand Up @@ -182,13 +182,12 @@ This is the backend API repository for TurLink. TurLink is a link shortener app
}
}
```
- Error Response (422 Unprocessable Entity):
- Error Response (404 Not Found) -- when user_id is not valid:
```json
{
"errors": [
{
"status": "unprocessable_entity",
"message": "User must exist"
"message": "Record not found"
}
]
}
Expand All @@ -212,13 +211,12 @@ This is the backend API repository for TurLink. TurLink is a link shortener app
}
}
```
- Error Response (404 Not Found):
- Error Response (404 Not Found) -- when shortened link is not entered or does not exist:
```json
{
"errors": [
{
"status": "unprocessable_entity",
"message": "User must exist"
"message": "Record not found"
}
]
}
Expand Down

0 comments on commit beeffe7

Please sign in to comment.