Skip to content

voltgizerz/rest-api-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API Rust

Simple REST APIs.

BUILD WITH

  • Rocket

HOW TO RUN PROJECT ?

  • Import database pokemon.sql at folder config
  • run this project using cargo run

GET

Routes:

  • (hello) GET /

  • (ping) GET /ping

  • (loops) GET /loops

  • (user) GET /user/{name}/{age}

  • (hello_param) GET /hello/{name}/{age}

  • Response hello_param:

{
    "active": true,
    "username": "burhan",
    "email": "burhan@gggmail.com",
    "age": 12,
    "duration": "Millis: 0 ms"
}

About

Simple REST API using Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published