Questions tagged [json-api]

"JSON API Protocol" sets the standard for constructing APIs using JSON formatting. When disagreements arise within your team regarding the presentation of JSON responses, turn to JSON API as your solution to avoid unnecessary debates.

What's the optimal method for serializing the `User` model for guest and authenticated users using JSONAPI?

Currently, I am developing an API using express.js following the JSONAPI specification, and utilizing a sequelize.js model. For instance, there is a User model with properties like name, email, balance, last_login_time, etc. When a user requests data abou ...

Struggling to locate a suitable mock server that can deliver JSON responses for a specific URL that has been predetermined

I have encountered a challenge in my frontend app development using vue.js. I need to find a mock backend server (without mocking it on the front end). My app is capable of making HTTP requests, specifically GET and PATCH are the methods of interest. I am ...

Ruby on Rails JSON API - flawless JSON without any errors

When I am displaying an array of ActiveRecord items, each has been processed through the valid? method so errors are already defined. The rendering of the array is done as follows: render json: array_of_objects I have ActiveModelSerializers.confi ...