Answer the question
In order to leave comments, you need to log in
Am I describing the API correctly?
Hello. In the course of writing api, I describe it. Here is an example of registration api
dock-genarais.esy.es/Users.getNewLogin Am I doing it right? VK docks are taken as an example. Thanks in advance
Answer the question
In order to leave comments, you need to log in
There are two ways to describe an API: "from structural units" and from tasks.
1. "from structural units": function A makes B.
2. from tasks: to make D you need to use E, F, Z
Therefore, the algorithm is as follows:
- determine which method suits you;
- create a skeletal structure;
- fill several units with content (do not forget about examples - you do not have them in the above fragment);
- do not forget about the restrictions of use.
Example "from tasks": api.ecwid.com
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question