Code Monkey home page Code Monkey logo

139-nounusedlocals-does-no-work-with-code-generation-ts's Introduction

OpenAPI Codegen for principled development

Collaboration with APIs between frontend and backend developers can be tough. In many of the best scenarios, the schema gets discussed up front, both teams go their own way thinking they understand the direction, and inevitably they need to "true up" at the end, making adjustments. In other situations, frontend devs work around not knowing what the API will look like and finish the last touches when the backend devs deliver a working API, even if it is just a prototype. Many developers use tools such as OpenAPI and Swagger to accomplish such a task.

However, there is a better way. OpenAPI supports a YAML specification for writing an API collaboratively. There are many OpenAPI editors that let you design the API up front. And there are code generators that allow you to generate either your server or client. This way, during those up-front design sessions with frontend and backend developers, you can end with a real API specification and both teams working towards that, with either team making the mapping layer as needed.

So, why these packages?

We've found that many of the code generators create "finished" code - they don't make it easy to iterate on the API. While this might be great in some scenarios, such as a versioned API, it doesn't work for many other scenarios, such as a frontend and backend deployed together when you don't need to support old versions of the API.

These generators are designed to be fast and lightweight such that you can include them with your CI process in order to build your API client or your API server interfaces and ensure that any changes to the API get detected by both sides.

Generators currently available:

139-nounusedlocals-does-no-work-with-code-generation-ts's People

Contributors

mdekrey avatar dependabot[bot] avatar tonymishler avatar mikewnelson avatar origamirobot avatar postmeback avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.