blog-api

This project provides a RESTful API for managing blog articles

MIT License

Stars
0

Blog API

This project provides a RESTful API for managing blog articles, intended for use on https://yossy.dev/.

Features

  • Like functionality

Technology Stack

  • Rust: Programming language
  • actix-web : Rust web framework
  • Diesel: Rust ORM (Object-Relational Mapping) library
  • SQLite: Database

Installation and Usage

  1. Clone the repository:
$ git clone [email protected]:yossydev/blog-api.git
  1. Navigate to the project directory:
$ cd blog-api
  1. Run the application
$ make up
  1. Api request
$ curl -X POST -H "Content-Type: application/json" -d '{"increment": 30}' http://localhost:8080/like/${slug}

API Endpoints

  • /likes: Like functionality

License

This project is licensed under the MIT License. See the LICENSE file for details.