Study repo. Project integrated with WebScraper.
Simple REST API designed for managing data obtained through the associated scraper tool.
docker run --name reddit-scraper -p 27017:27017 -d mongo
go run api/main.go
- URL:
/posts - Method: GET
- Description: Retrieves all posts.
- URL:
/posts - Method: POST
- Description: Creates a list of new posts. If some posts already exist in the database, updates them.
- URL:
/post - Method: POST
- Description: Creates a new post.
- URL:
/posts/{postId} - Method: GET
- Description: Retrieves a specific post by ID.
- URL:
/posts/{postId} - Method: PUT
- Description: Updates a specific post by ID.
- URL:
/posts/{postId} - Method: DELETE
- Description: Deletes a specific post by ID.