jimmacur / hang_in_there_api

1 stars 0 forks source link

Returning Count #8

Closed jimmacur closed 2 months ago

jimmacur commented 2 months ago

Returning Count This endpoint should:

Add a count value to our JSON response. Following JSON:API convention, this should be added as a key value pair with a key of "meta" at the same level as our "data" key. "meta" has a value of a hash ({}) and within that hash is the key value pair of "count": [integer] Request examples: GET /api/v1/posters Example JSON response for GET /api/v1/posters