https://github.com/wpcodevo/simple-api-rust-axum
If you're new to Rust and eager to build your first API, you're in luck: this article will guide you step by step through building a simple REST API in Rust using the Axum framework.
https://github.com/wpcodevo/simple-api-rust-axum
axum axum-framework rust todo-app todo-app-api todo-list
Last synced: 16 days ago
JSON representation
If you're new to Rust and eager to build your first API, you're in luck: this article will guide you step by step through building a simple REST API in Rust using the Axum framework.
- Host: GitHub
- URL: https://github.com/wpcodevo/simple-api-rust-axum
- Owner: wpcodevo
- Created: 2023-03-28T23:44:16.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T08:09:28.000Z (over 1 year ago)
- Last Synced: 2025-03-27T09:11:31.829Z (about 1 month ago)
- Topics: axum, axum-framework, rust, todo-app, todo-app-api, todo-list
- Language: Rust
- Homepage: https://codevoweb.com/create-a-simple-api-in-rust-using-the-axum-framework/
- Size: 16.6 KB
- Stars: 41
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create a Simple API in Rust using the Axum Framework
If you're new to Rust and eager to build your first API, you're in luck: this article will guide you step by step through building a simple REST API in Rust using the Axum framework.

## Topics Covered
- Run the Rust Axum API on your Machine
- Setup the Rust Project
- Create an In-memory Database
- Define the API Response Structs
- Create the Axum API Route Handlers
- Axum Route Function to Fetch All Records
- Axum Route Function to Add a Record
- Axum Route Function to Retrieve a Record
- Axum Route Function to Edit a Record
- Axum Route Function to Delete a Record
- The Complete Axum Route Functions
- Create the Axum API Routes
- Register the API Routes and Setup CORS in Axum
- ConclusionRead the entire article here: [https://codevoweb.com/create-a-simple-api-in-rust-using-the-axum-framework/](https://codevoweb.com/create-a-simple-api-in-rust-using-the-axum-framework/)