Answer the question
In order to leave comments, you need to log in
How do you develop Rest API?
Now the development of applications using Api (SPA and mobile) looks like this:
Answer the question
In order to leave comments, you need to log in
I support the topic with graphql - but here you need to understand that in order to use it, you still need to first create a REST API with basic CRUD operations from which graphql will already collect everything you need.
On the main topic, I can say that the best approach to create a REST API with automatic generation of Swagger / Open API specifications that I have seen is called "Model Driven Design" - here is an article about it: https://strongloop.com/strongblog/node-js-api -tip-...
Article from the developers of the loopback framework: https://loopback.io
Judging by your question, you have a js backend, so you can try it - this is just a specialized framework for creating API servers. Generates the entire API for all application models automatically + methods for all relational relationships + allows you to add your own methods.
There is also a solution for the PHP stack: https://api-platform.com but it is still inferior to loopback due to incomplete support for automatic creation of endpoints for relational links.
My recommendation:
1) Read about model driven design
2) Make a list of your application models
3) Write the fields, methods and relationships of each model
4) Generate an API according to the description received, document it, spice it up, serve it to the table
Technical specifications are being written (more for the client than for developers)
TK first of all needs developers
api documentation should be written by a front-end developer focusing on design - he is also planning to work with this
ps we plan to go to graphql
Can you share your working methods?
We do not use Postman as such. For the API documentation, we use swagger in conjunction with the .net core, on which we also code the client API for the front. Never had a problem and saves a lot of time.
While we are sawing the back, the front is typesetting the pages, we give the back in parts. We simply coordinate what we saw and work in parallel.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question