Skip to content

Open API to Client Codes

fonlow edited this page Mar 3, 2020 · 9 revisions

(Under construction, in development)

Open API (Swagger) is designed for RESTful Web API, neutral to operation platforms and development platforms, generating codes for both servers and clients.

WebApiClientGen is designed for RPC Web API, optimizing the capacity and the abilities of ASP.NET, C# and TypeScript, generating codes for clients only.

Open API supports while WebAPI doesn't

  • Server side codes.
  • Describe multiple responses of an operation, while WebApiClientGen supports only the response with status code 200 or 204.
  • Handle HTTP header and cookie as parameter
  • Handle authentication

Web API supports while Open API doesn't

  • Namespaces.
  • Generic

The overlapping areas:

  1. Strongly typed API.
  2. Client side data models.

This is one of the reasons why OpenApiToClientCodes could generate cleaner and simpler client codes within the business scope of specific client programming.

Clone this wiki locally