Answer the question
In order to leave comments, you need to log in
ASP.Net Core Web API uniform response format?
Actually the question is in the title.
What I want: a unified response format from the API like VK.
For successful results, the response format is approximately the following:
{
"response": {
"count": 2,
"items": [
1,
2,
]
}
}
{
"error": {
"error_code": 5,
"error_msg": "User authorization failed: invalid access_token (4)."
}
}
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