User Api Ux

This Repo uses .Net and MongoDB for backend applications.

The application has User and Document Services. User service manipulates users' information and Document service lets users upload, update, and delete their documents.

To run the application, firstly you need to create a MongoDB database. The database name and collection names are set below. If you create those with different names and different ports, you need to change those values. They are dynamically set in startup.cs under the region "Settings Defined".

Appsettings Db Setting

After running the code, the swagger should open. Some of the request does not need authorization but some does. To authorize and get a JWT token, you need to register.

post

Here userRole can be "Admin" or "User". It's not the best usage, but it's used this way for simplicity. After you register, the Login request should be used with the registered information to get the JWT token.

login

To authorize, you need to press the authorize button at the top and paste the JWT token into the area by writing Bearer in front, such as "Bearer jwt-token-here"

Authorize

Thanks for your interest