The complete api is covered in main.go
file.
- Mongodb for system Refer this link
- GoLang for system Refer this link
- Gorilla MUX Refer this link
The http server runs on port 9090 for this program, be sure to check it before testing.
Passwords have been securely stored on the server using bcrypt
golang default package. This ensures that passwords cannot be reverse engineered by anyone.
There is never more than one simultaneous call to function throughout the api, hence, thread safety is ensured.
The entire api has been tested using Postman API platform. Some screenshots are attached below for reference :
Add User :
Add post :
List posts by one user :
The api is fully functioning and works for all endpoints mentioned in the task.