Tried out Mediator pattern with MediatR + CQRS. Implemented Clean Architecture (small flaws).
Currently working on a gateway made through Ocelot.
To access this gateway you need to use https://localhost:7000.
To access the Swagger documentation for the whole gateway - go to https://localhost:7000/swagger
Its also possible to access directly through:
- RequestServiceApi use: http://localhost:7001/requestapi/docs
- UserServiceApi use: http://localhost:7002/userapi/docs
The endpoint listed in swagger can be run through the API gateway on port 7000.
To make use of authentication you have to do the following. The UserService.WebApi has three endpoints.
Register will make you an account in the database. Afterwards you will have to make a login to get a token in return.
To make a call to an authorized endpoint the HTTP request could be like the following
Follow the Trello board for this service https://trello.com/b/dGL6qEss/requestservice