fastify-swagger
openapi-client-axios
fastify-swagger | openapi-client-axios | |
---|---|---|
8 | 5 | |
854 | 498 | |
2.9% | 2.4% | |
7.7 | 8.3 | |
17 days ago | 2 months ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fastify-swagger
-
Craft OpenAPI Specs & Production-Ready SDKs with Fastify
With Speakeasy, you can create client SDKs based on an OpenAPI specification. Fastify ships with the @fastify/swagger plugin, which provides convenient shortcuts for generating good OpenAPI specifications. We'll start this tutorial by registering @fastify/swagger in a Fastify project to generate a spec.
-
Testing for Breaking Changes in Fastify APIs
First let’s get our current OpenAPI specification out of Fastify and onto the file system. If you have not added the https://github.com/fastify/fastify-swagger plugin first go do that. Then use this simple script I called generate-spec.ts to write your OpenAPI specification to the filesystem.
- Is there a FastAPI alternative for Node?
- Is NestJS good for startups?
-
Automatic swagger ui for nodejs/express? (Info in comments)
The fastify-swagger docs has an example https://github.com/fastify/fastify-swagger
-
Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 1
@fastify/swagger is a fastify plugin to serve a Swagger UI, using Swagger (OpenAPI v2) or OpenAPI v3 schemas automatically generated from your route schemas, or from an existing Swagger/OpenAPI schema.
-
How do you write your API documentation? Any self-hosted utilities you'd recommend?
On the Node.js framework side of things, Fastify has support for Swagger with the fastify-swagger plugin.
-
How do you unify TypeScript for both frontend and backend?
With this approach, backend can be any programming languages that support OpenAPI or Swagger. Personally, I use fastify-swagger; but I can also be things like Python's FastAPI or Golang's Gin/Buffalo/Native.
openapi-client-axios
-
Show HN: REST Alternative to GraphQL and tRPC
Thanks for the feedback!
There is a full interactive sandbox example on the front/landing page https://openapistack.co
But point taken, will make sure code examples are visible on the overview page
-
.NET with React - what to choose between pure MVC, MVC with React or pure React (and .NET backend)?
There are also some tricks to make it easier, like using swagger/openapi to generate strongly typed API client (for Typescript) to your backend. There a package that generates the types: https://www.npmjs.com/package/openapi-client-axios
-
What is exact purpose of DRF API clients?
CoreAPI is deprecated, use OpenAPI instead. On the Javascript/Typescript side I personally like to use OpenAPI Client Axios to generate the client for me.
-
How do you unify TypeScript for both frontend and backend?
And typegen is openapi-client-axios-typegen. (You can also try swaxios, but I failed to run it.)
What are some alternatives?
fastify-openapi-glue - A plugin for the Fastify webserver to autogenerate a Fastify configuration based on a OpenApi(v2/v3) specification.
openapi-typescript-codegen - NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
widdershins - OpenAPI / Swagger, AsyncAPI & Semoasa definitions to (re)Slate compatible markdown
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
fastify-jwt - JWT utils for Fastify
retry-axios - 🦖 A super flexible interceptor for Axios that makes it easy to retry requests.
tsoa - Build OpenAPI-compliant REST APIs using TypeScript and Node
loopback-next - LoopBack makes it easy to build modern API applications that require complex integrations.
awesome-jsonschema - A curated list of awesome JSON Schema resources, tutorials, tools, and more.
redoc - 📘 OpenAPI/Swagger-generated API Reference Documentation
swagger-jsdoc - Generates swagger/openapi specification based on jsDoc comments and YAML files.
axios-cookiejar-support - Add tough-cookie support to axios.