Skip to content

Commit

Permalink
refactor: re-build api designing and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBoji committed Oct 7, 2024
1 parent ba719d0 commit 2643468
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/day16_to_day18/web_development.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ async fn create_user(user: web::Json<User>) -> impl Responder {
pub async fn main() -> std::io::Result<()> {
const HOST: &str = "127.0.0.1";
const PORT: u16 = 8080;

// Run to get all users http://127.0.0.1:8080/api/v1/users
// Run to get user with id 1 http://127.0.0.1:8080/api/v1/users/1
// Run to get filter user http://127.0.0.1:8080/api/v1/users
println!("Starting web server at http://{}:{}", HOST, PORT);

HttpServer::new(|| {
Expand Down

0 comments on commit 2643468

Please sign in to comment.