This API includes the following:
- Role based JWT authentication.
- Web API Helper which standardizes responses, maps errors, etc...
- An implementation of Serilog for logging.
- A core library with the following
- Custom data model attributes
- Database adapter
- Helper functions for hashing, encrypting, compression, random number & character generation, etc...
- A constants library for commonly used constants.
Before using the code in production
- In appsettings.json
- Database connection string.
- JWT secret, issuer and audience
- Update the login controller, user lib & auth lib.
- In program.cs
- Update CORS websites list
- Values controller, values lib & corresponding interfaces