Skip to content

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.

Notifications You must be signed in to change notification settings

wpcodevo/simple-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Build a Simple API in Rust

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/

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published