- Docker
- Docker-compose
- Run the
make dockerup
for deployment on local machine and test the endpoints - Run
make dockerstart
for starting stopped project. - Run
make dockerstop
for stopping active project. - Run
make dockerdown
for deleting containers, volumes and images of project.
API-Gateway available on localhost:3000.
Service | Method | Endpoint |
---|---|---|
Parse posts | POST |
/parser/parse |
Parsing status | GET |
/parser/status |
Get post | GET |
/post/{id} |
Get posts | POST |
/post/getposts |
Delete post | POST |
/post/delete |
Update post | POST |
/post/update |
localhost:3000/parser/status
- GET request for checking parsing statuslocalhost:3000/parser/parse
- POST request for starting parserlocalhost:3000/post/1
- GET request for single postlocalhost:3000/post/getposts
- POST request with JSONid
array for several postslocalhost:3000/post/delete
- POST request with JSONid
for deleting single postlocalhost:3000/post/update
- POST request with JSONid, user_id, title, body
for updating single post
- Optimizing deployment