https://github.com/wpcodevo/simple-api
This tutorial will teach you how to build a simple CRUD API in Rust using the Warp web framework and Tokio. We'll use Rust and a few well-known libraries to create a RESTful API that runs on a Warp HTTP server and stores data in memory.
https://github.com/wpcodevo/simple-api
crud crud-api rest-api restful-api rust rust-api rust-lang tokio tokio-rs warp
Last synced: 6 days ago
JSON representation
This tutorial will teach you how to build a simple CRUD API in Rust using the Warp web framework and Tokio. We'll use Rust and a few well-known libraries to create a RESTful API that runs on a Warp HTTP server and stores data in memory.
- Host: GitHub
- URL: https://github.com/wpcodevo/simple-api
- Owner: wpcodevo
- Created: 2023-01-09T16:37:34.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T08:32:53.000Z (about 3 years ago)
- Last Synced: 2025-04-13T18:32:53.582Z (11 months ago)
- Topics: crud, crud-api, rest-api, restful-api, rust, rust-api, rust-lang, tokio, tokio-rs, warp
- Language: Rust
- Homepage: https://codevoweb.com/build-a-simple-api-in-rust/
- Size: 13.7 KB
- Stars: 30
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build a Simple API in Rust
This tutorial will teach you how to build a simple CRUD API in Rust using the Warp web framework and Tokio. We'll use Rust and a few well-known libraries to create a RESTful API that runs on a Warp HTTP server and stores data in memory.

## Topics Covered
- Run the Rust API Project Locally
- Setup the Rust Project
- Create the API Model
- Create the API Response Structs
- Create the API Route Handlers
- Health Checker Route Handler
- Find All Records Route Handler
- Create Record Route Handler
- Find One Record Route Handler
- Edit Record Route Handler
- Delete Record Route Handler
- Create the API Routes and Setup CORS
- Test the API Endpoints
- Add New Record
- Update a Record
- Get a Record
- Get All Records
- Delete a Record
Read the entire article here: [https://codevoweb.com/build-a-simple-api-in-rust/](https://codevoweb.com/build-a-simple-api-in-rust/)