Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.23 KB

api_response.md

File metadata and controls

35 lines (22 loc) · 1.23 KB

APIResponse

This class is the common API response object.

Package /routes/controllers/api_response

Constructors

Constructor Description
constructor(headers, statusCode, object) Creates an APIResponse class instance with the specified parameters.

headers

The map containing the API Response headers

statusCode

The integer containing the API response HTTP status code.

object

The object containing the API response class instance.

Methods

Method Description
statusCode The getter method to get the API response HTTP status code.
object The method to get the API response class instance.
headers The getter method to get the API response headers.

source