{"repo":"fastify/fastify-swagger-ui","free":true,"listed":false,"github":"https://github.com/fastify/fastify-swagger-ui","clone":"git clone https://github.com/fastify/fastify-swagger-ui.git","description":"Serve Swagger-UI for Fastify","language":"JavaScript","stars":192,"topics":["documentation","fastify","fastify-plugin","openapi","swagger"],"license":"MIT","category":"docs-static-sites","readme_excerpt":"@fastify/swagger-ui A Fastify plugin for serving Swagger UI. Install Compatibility Plugin version Fastify version Swagger Plugin Version -------------- --------------- ---------------------- ^5.x ^5.x ^9.x ^2.x ^4.x ^8.x ^1.x ^4.x ^8.x Please note that if a Fastify version is out of support, then so are the corresponding versions of this plugin in the table above. See Fastify's LTS policy for more details. Usage Add it with @fastify/swagger to your project with register , pass it some options, call the swagger API, and you are done! API Register options Options Option Default Description ------------------ --------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- baseDir undefined Specify the directory where all spec files that are included in the main one using $ref will be located. By default, this is the directory where the main spec file is located. Provided value should be an absolute path without trailing slash. initOAuth {} Configuration options for Swagger UI initOAuth. routePrefix '/documentation' Overwrite the default Swagger UI route prefix. indexPrefix '' Add an additional prefix. This is for when the Fastify server is behind path based routing. ex. NGINX staticCSP false Enable CSP header for static resources. transformStaticCSP undefined Synchronous function to tra","default_branch":null,"files":null,"tree":[],"storefront":"/r/fastify","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fastify/fastify-swagger-ui/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}