Answer the question
In order to leave comments, you need to log in
Code documentation. Am I doing the right thing?
Hello. Near the router path I make a command with a detailed description.
There are two questions.
Is it worth it to do so?
Am I documenting clearly?
/*
отвечает за добавление нового человека в базу
Принимает
user/reg.Auth/{
"login" : "%login%",
"email" : "%email%",
"pass" : "%pass%"
}
%login% - логин добавляемого человека.
%email% - email человека
%pass% - password человека
Возвращает
{
"operation" : "true//false",
"operation_messages" : "%description%"
}
operation -> true - операция выполнена успешно
-> false - произошла ошибка
operation_messages -> operation -> true -> "Ok"
-> operation -> false -> "Error description"
*/
router.GET("/reg.Auth/:json", auth.Create)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question