Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4837

Params received under _jsonapi key

$
0
0

@hectorsq wrote:

When I send messages using Ember Data to a Rails backend the received params in controllers are under a _jsonapi key.

Started PATCH "/api/medical_record/v1/observations/4CC33E017FC2D9E3A1D1AEB78FC33A9E" for 127.0.0.1 at 2018-02-14 19:21:42 -0600
Processing by API::MedicalRecord::V1::ObservationsController#update as JSONAPI

  Parameters: {
    "_jsonapi"=>{
      "data"=>{
        "id"=>"4CC33E017FC2D9E3A1D1AEB78FC33A9E",
        "attributes"=>{
          "code"=>"apertura_ocular",
          "name"=>"Apertura ocular",
          "selected-value"=>"3"
        },
        "type"=>"observations"
      }
    },
    "id"=>"4CC33E017FC2D9E3A1D1AEB78FC33A9E"
  }

Is this normal?

Do I have a wrong configuration?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4837

Trending Articles