ga4gh-beacon / specification-v2

GA4GH Beacon v2 specification.
Apache License 2.0
3 stars 6 forks source link

Add "url" and remove "id" from "receivedRequest" #11

Closed sdelatorrep closed 4 years ago

sdelatorrep commented 4 years ago

Imagine we are requesting a specific individual by calling /individuals/IND1111. In the response, we could have this new field url within receivedRequest:

{
    "receivedRequest": {
      "url": "/individuals/IND1111",
      "meta": {
        "requestedSchemas": { }
      },
      "query": { }
    }
}

instead of:

{
    "receivedRequest": {
      "meta": {
        "requestedSchemas": { }
      },
      "query": {
        "individual": {
          "id": "IND1111"
        }
      }
    }
}

We can get rid of these complex objects, individual and biosample, and the id field within them and g_variant.

jrambla commented 4 years ago

As agreed, not doing any change. Thanks.