Skip to content

capt4ce/rust-api-sqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-api-slqlite

It's a learning repo for creating CRUD functionality with Rust and Sqlite.

Routes

  • GET /: heath check endpoint
  • GET /users: return list stored users
  • POST /users: create a new user
  • GET /users/{id}: get user with the specified {id}
  • PATCH /users/{id}: update user with the specified {id}
  • DELETE /users/{id}: delete user with the specified {id}

Starting the project

Run the following command:

cargo run

Improvement points

  • Handle errors properly & printing them
  • return a meaningful error responses

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published