Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marirs/api-rs
Barebones API server using Rust Rocket framework
https://github.com/marirs/api-rs
api api-rest barebones rocket rust rust-lang ssl
Last synced: 21 days ago
JSON representation
Barebones API server using Rust Rocket framework
- Host: GitHub
- URL: https://github.com/marirs/api-rs
- Owner: marirs
- License: mit
- Created: 2021-06-06T02:18:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-22T02:06:44.000Z (over 3 years ago)
- Last Synced: 2024-11-08T22:51:12.231Z (3 months ago)
- Topics: api, api-rest, barebones, rocket, rust, rust-lang, ssl
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# api-rs
Bare-bones API server using Rust Rocket framework. You can add API Key verification using JWT and/or database, etc by taking the barebones project from here.
you can also add as many endpoints you would want.If you are looking for an API server with database and api key verification etc, you can check out my other [Repo](https://github.com/marirs/rocketapi).
### Requirements
- Rust 1.52+ (Stable)### Running
- Build
```bash
cargo b
```- Run
Start with server defaults
```bash
cargo run
```Start with a config file
```bash
cargo run -- -c config.yml
```#### Generate SSL cert
```bash
sudo openssl req -x509 -nodes -days 30 -newkey rsa:2048 -keyout key.pem -out cert.pem
```
---
License: MIT