Skip to content

API endpoint build using Rocket 🚀 and Diesel ⛽ in Rust.

Notifications You must be signed in to change notification settings

kouyxi/rocket-posts-endpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Name

This project utilizes Diesel for migrations and provides an endpoint accessible via Basic Authorization.

Getting Started

  1. Clone this repository:

    $ git clone https://github.com/4prndz/rocket-posts-endpoint
  2. Run migrations:

    $ diesel migration run --database-url ./database.sqlite
  3. Run the project:

    $ cargo run

Accessing the Endpoint

To access the endpoint, you need to use Basic Authorization by providing your login credentials encoded in base64.

Example using cURL:

$ curl -Ss http://localhost:8000/posts -H 'Authorization: Basic NHBybmR6OmtvdWljaGkNCg=='

About

API endpoint build using Rocket 🚀 and Diesel ⛽ in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages