https://github.com/maxmekiska/micro-sentiment
A tiny rust micro-service implementation for sentiment analysis.
https://github.com/maxmekiska/micro-sentiment
microservice rust sentiment-analysis
Last synced: about 1 year ago
JSON representation
A tiny rust micro-service implementation for sentiment analysis.
- Host: GitHub
- URL: https://github.com/maxmekiska/micro-sentiment
- Owner: maxmekiska
- Created: 2023-02-06T00:46:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T00:57:37.000Z (about 3 years ago)
- Last Synced: 2024-10-09T12:58:21.665Z (over 1 year ago)
- Topics: microservice, rust, sentiment-analysis
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Micro-sentiment
A tiny rust micro-service implementation for sentiment analysis.
## Test
- run `cargo test`
## Run service
- run `cargo build`
## Endpoints
### Root endpoint `/`
```shell
http://127.0.0.1:8000/
```
### Sentiment endpoint `/sentiment`
```shell
curl -X POST \
-H "Content-Type: application/json" \
-d '{"text": "This is good."}' \
http://127.0.0.1:8000/sentiment
```