-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mock-api): add comments to source code (#20)
Co-authored-by: Kiryl Mialeshka <[email protected]>
- Loading branch information
Showing
10 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
### Dependencies | ||
|
||
1. `rust` https://rust-lang.github.io/rustup/installation/index.html | ||
|
||
|
||
### How to run | ||
|
||
In the root directory of the project | ||
|
||
`cargo run -p mock-api` | ||
`cargo run -p mock-api` | ||
|
||
|
||
### Routes | ||
|
||
* `GET http://127.0.0.1:3000/posts` | ||
|
||
Get all posts | ||
|
||
* `GET http://127.0.0.1:3000/posts/1` | ||
|
||
Get specific post | ||
|
||
* `GET http://127.0.0.1:3000/users` | ||
|
||
Get all users | ||
|
||
* `GET http://127.0.0.1:3000/users/1` | ||
|
||
Get specific user | ||
|
||
* `GET http://127.0.0.1:3000/users?id=1&id=2` | ||
|
||
Get specified users |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters