- This API is developed using go language with mongoDB as the database.
- You can create user and post with the http calls listed down below.
- Also user details and post can be fetch corresponding to the gievn ID.
-
Should be a POST request
-
Use JSON request body
-
URL should be ‘/users'
-
{ "Name": "XYZ ABC", "Email": "[email protected]", "Password": "xyzabc" }
- Should be a GET request
- Id should be in the url parameter
- URL should be ‘/users/’
- Should be a POST request
- Use JSON request body
- URL should be ‘/post'
-
{ "Caption": "My first post", "Image_URL": "https://first_post.png", "UserId": "61612bb9e11c71a9c06d5ea9" }
- Should be a GET request
- Id should be in the url parameter
- URL should be ‘/post/’
- Should be a GET request
- URL should be ‘/posts/users/'
- Id
- Name
- Password
- Id
- Caption
- Image URL
- Posted Timestamp