This example shows the intended method for implementing a simple app using Fintrospect routes and modules, using
a Swagger 2.0 renderer.
This example shows the intended method for implementing a simple app using Fintrospect routes and modules, using
a Swagger 2.0 renderer. The Swagger API endpoint lives at the root of the module (in this case /library) instead
of /api-docs.
Note the use of the CORS policy filter to allow the endpoints to be called by the Swagger UI. For normal usage,
use CORs settings that suit your particular use-case. This one allows any cross-domain traffic at all and is applied
to all routes in the module (by being passed as the optional param to the ModuleSpec constructor)
This example shows the intended method for implementing a simple app using Fintrospect routes and modules, using a Swagger 2.0 renderer. The Swagger API endpoint lives at the root of the module (in this case /library) instead of /api-docs.
Note the use of the CORS policy filter to allow the endpoints to be called by the Swagger UI. For normal usage, use CORs settings that suit your particular use-case. This one allows any cross-domain traffic at all and is applied to all routes in the module (by being passed as the optional param to the ModuleSpec constructor)