1.2 API docs - terrytaylorbonn/auxdrone GitHub Wiki

25.0118 (24.1213) Gdrive

The goal for this section is to discover/use tools that created some great API sites (such as nodejs docs).

  • 1 Swagger / manual
  • 2 Swagger / annotations
  • 3 Swagger / autogen (from code)
  • 4 REST other (Sphinx, markdown)
  • 5 GraphQL
  • 6 Socket.io, gRPC, websocket, etc
  • 7 API websites
  • 8 Swagger from AI
  • NOTES



1 Swagger / manual

24.1219 (1128,0922) Gdrive

~9 OK (working).

ASTRO

  • #242_(ERROR)_astro_swagger_GPT_v01_24.1210.docx (using GPT instructions, most works, but 404)

FLASK

NODEJS + express + swagger

FASTAPI:



2 Swagger / annotations

Swashbuckle, Nswag



3 Swagger / autogen (from code)

NSwag (RicoSuter): The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript

https://github.com/RicoSuter/NSwag

Features Generate Swagger 2.0 and OpenAPI 3.0 specifications from C# ASP.NET (Core) controllers Serve the specs via ASP.NET (Core) middleware, optionally with Swagger UI or ReDoc Generate C# or TypeScript clients/proxies from these specs Everything can be automated via CLI (distributed via NuGet tool or build target; or NPM) CLI configured via JSON file or NSwagStudio Windows UI Ways to use the toolchain Simple to use Windows GUI, NSwagStudio By using the OpenAPI or OpenAPI UI OWIN and ASP.NET Core Middlewares (also serves the Swagger UI) (recommended) Via command line (Windows, Mac and Linux support through Mono or .NET Core console binary, also via NPM package) In your C# code, via NuGet In your MSBuild targets With ServiceProjectReference tags in your .csproj (preview) In your Azure V2 Functions (external project, might not use latest NSwag version) Tutorials Add NSwag to your ASP.NET Core app Integrate the NSwag toolchain into your ASP.NET Web API project Generate an Angular TypeScript client from an existing ASP.NET Web API web assembly Video Tutorial: How to integrate NSwag into your ASP.NET Core Web API project (5 mins)

Flask-RESTX is a community driven fork of Flask-RESTPlus.

Flask-RESTX is an extension for Flask that adds support for quickly building REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of decorators and tools to describe your API and expose its documentation properly using Swagger.



4 REST other (Sphinx)

  • #284_(OK-10%)_nodejs_doc_generate_NODEJS_v01_25.0110.docx Trying to generate the nosejs.org docs. generated basic pages.. need to get the frame and tailwind running.
    image
  • #34_(OK)_(63.2b)_sphinx_tutorial_WSL_01_24.0920.docx sphinx website tutorial.. still need to finish. The author for some reason leaves out little critical details left and right, so will take some time. but basically works. WSL win11.
    image
  • #33_(OK)_(63.2b)_sphinx_soumil_WSL_01_24.0919.docx Sphinx Documentation Tool | HTML UI | How to Document Large Python Codebases and Classes | Soumil Shah https://www.youtube.com/watch?v=5s3JvVqwESA
    image
  • **** #31_(OK)_(63.2b)_zero2hero_sphinx_WSL_01_24.0919.docx (SERIES) zero 2 hero sphinx https://www.youtube.com/playlist?list=PLMQPLA3qF-uuD2p6s7qEjhIawm8pIqYr-
    image
  • (19.07/GIT) #32_(ERROR)_(63.2b)_sphinx_avcourt_WSL_01_24.0919.docx https://www.youtube.com/watch?v=b4iFyrLQQh4
    image



5 GraphQL

#262 graphql TRAVERSY



6 Socket.io, gRPC, websocket, etc



7 API websites

Looking for good websites to publish the (static) docs sites. Copy something someone else has done.

8 Swagger from AI







NOTES 25.0109

Tools and Integrations

https://swagger.io/tools/open-source/open-source-integrations/ image

2018 Annotation Libraries for Generating OAS (And Other FAQs from Swagger Users)

https://swagger.io/blog/api-development/swagger-annotation-libraries/

image

2018 Add Swagger to Your Existing APIs: How to Automate a "Code First" Approach to OAS at Scale

https://swagger.io/resources/webinars/automate-code-first-approach-swagger/ image

NOTES

TODO

swagger manual

  • #244_(OK)_api_tutorial_LENZO_v01_24.1211.
    • First 18 mins is creating swagger manually.
    • He used codegen to generate python flask. I had errors... just used his code, but had to patch a lot.
    • I added later to this demo
      • #240 django front end.

nodejs doc tools 25.0107


24.1206

https://www.gartner.com/doc/reprints?id=1-2J45QPJH&ct=241017&st=sb

image

https://swagger.io/

image

xxxx

do trial for this https://swagger.io/tools/swaggerhub/features/swaggerhub-portal/
image

Manual creation (Swagger editor, VSCode, etc)


Use Labbe GIT as starting point for advanced Swagger

  • 1_#23_(TODO)_(63.2)_rlabbe_fork_v02_24.0903.docx (the idea is to fork Labbe GIT and add swagger as the main demo)
⚠️ **GitHub.com Fallback** ⚠️