Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rggh/ax2
Rust Axum API with Swagger UI
https://github.com/rggh/ax2
api axum rust rust-tutorial swagger-ui
Last synced: 6 days ago
JSON representation
Rust Axum API with Swagger UI
- Host: GitHub
- URL: https://github.com/rggh/ax2
- Owner: RGGH
- Created: 2023-04-01T11:27:46.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T18:51:58.000Z (almost 2 years ago)
- Last Synced: 2024-12-07T03:31:37.191Z (2 months ago)
- Topics: api, axum, rust, rust-tutorial, swagger-ui
- Language: Rust
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ax2 - Rust
[![Rust](https://github.com/RGGH/ax2/actions/workflows/rust.yml/badge.svg)](https://github.com/RGGH/ax2/actions/workflows/rust.yml)Axum API with Swagger UI
### Learning project
- create swagger UI
- add POST and GETtodo:
- take 2 params : i32, i32 and return result in JSON
- eg.Currently this is returning JSON ``
```params
pub async fn query_params(Query(query): Query) -> Json {
Json(query)
}
```
- Add in a function to return i32 from a calculation of input param1 and input param2
- link with SQLX