https://github.com/yossydev/blog-api
This project provides a RESTful API for managing blog articles
https://github.com/yossydev/blog-api
rust
Last synced: 2 months ago
JSON representation
This project provides a RESTful API for managing blog articles
- Host: GitHub
- URL: https://github.com/yossydev/blog-api
- Owner: yossydev
- License: mit
- Created: 2024-02-07T03:32:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-05T19:22:47.000Z (3 months ago)
- Last Synced: 2025-03-05T20:39:46.449Z (3 months ago)
- Topics: rust
- Language: Rust
- Homepage: https://yossy.dev
- Size: 417 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
## 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
```2. Navigate to the project directory:
```
$ cd blog-api
```3. Run the application
```
$ make up
```4. 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.