'Expose nodejs restapi as library
I am working on POC where I have to find a way to expose rest-api implementation as a library so other projects can use this library easily...
Problem statement - So, why I need this because my team is working on two project so 1. is a backend project where api is implemented, and 2. Frontend project they are using this api ...... so what's happening is that if api implemmentation changes done in backend project then the frontend project team has to import latest backend project again and again. so I want to create a library which is used directly by the frontend team.
Solution 1:[1]
I think it is not good way to optimize work with api. Documenting REST API using Swagger will be better
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Marek Mikhaltsevich |
