This repository was archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Development References
Scott Lusk edited this page Sep 13, 2018
·
7 revisions
This page outlines some links and information to keep in mind when developing in the Urban Engine API
- Azure Database for PostgreSQL
- Refer to documentation at Azure Database for PostgreSQL Documentation
- More details to be added once setup for project
- the Web API services take advantage of API versioning via ASP.NET API Versioning
- this allows multiple versions of endpoints to be supported without breaking the API for consumers
- reference the GitHub repo at ASP.NET API Versioning
- example on the wiki followed to integrate with Swagger
- Application Insights is setup in the source code to help "monitor the web application for availability, performance, and usage."
- In the appsettings.json file an entry exists for ApplicationInsights where an
InstrumentationKeymust be specified in order to log any telemetry to AppInsights for the application - Refer to documentation at Application Insights for ASP.NET Core
- The logging API supported by ASP.NET Core is a built in provider that works with a variety of logging providers.
- Currently only
ConsoleandDebugare setup in the source code but additonal providers may be added at a later time - Refer to documentation at Logging in ASP.NET Core for examples and details
- The
Loggingsection of the appsettings.json file controls various logging related settings
- Swagger is used for generating API documentation about the Web API services
- Refer to documentation at Get started with Swashbuckle and ASP.NET Core on details for how this works
- Add XML documentation to any class, and class members (methods, properties, etc) to see this in the swagger generated documentation
- Swagger gives the ability to call an API endpoint directly from the swagger doc