Skip to content

Repository files navigation

Design patterns for APIs

  • APIs must have handled errors. They must return data if an Exception occurs as {"status": errorCode, "message": errorDetails}
  • APIs having successful flow must return in the following format {"status":200, "message": responseMessage, "data": responseData}. At least one of the fields of message and data is mandatory. Data field will always be a top level json, if for whatever need, it has to an array, then it should be of the format "data" : {"content": dataArray}

About

SSO Service

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages