1.0.1 • Published 9 years ago

@rmarscher/api-envelope v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

API Envelope

Provides a configurable object to return a standarized API response format following emerging standards and best practices.

Foursquare is one of the sites that follows these best practices, so we can use them as our main point of reference.

https://developer.foursquare.com/overview/responses

{
    "meta": {
        "code": 200,
        ...errorType and errorDetail...
    },
    "notifications": {
        ...notifications...
    },
    "response": {
        ...results...
    }
}