ga4gh-beacon / specification-v2

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

Reformat the / endpoint so it has the same structure as the query response #19

Closed sdelatorrep closed 4 years ago

sdelatorrep commented 4 years ago

The response should be something similar to:

{
  "meta": {
    "beaconId": "ega.beacon",
    "apiVersion": "2.0.0-draft.1",
    "receivedRequest": {
      "meta": {
        "requestedSchemas": {
          "BeaconInfo": [
            "ga4gh-service-info-v1.0"
          ]
        }
      },
      "query": {}
    },
    "returnedSchemas": {
      "BeaconInfo": [
        "beacon-info-v0.1",
        "ga4gh-service-info-v1.0"
      ]
    }
  },
  "value": {
    "results": [
      {
        "defaultSchema": {
          "version": "beacon-info-v0.1",
          "value": {

          }
        },
        "alternativeSchemas": [
          {
            "version": "ga4gh-service-info-v1.0",
            "value": {

            }
          }
        ]
      }
    ]
  }
}