Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the service-info to use the ga4gh discovery standard in progress (resolves #264) #277

Merged
merged 2 commits into from
Jun 17, 2019

Conversation

briandoconnor
Copy link
Contributor

See the issue #264

This PR is trying to harmonize the service-info endpoint to service-info format being proposed for all of GA4GH. This is still a work in progress and hasn't been approved yet.

Some potential problems, I think we ultimately need a service-info endpoint of service-info endpoints. Something like:

https://drs-server.com/service-info

And that should respond with something like:

[ https://drs-server.com/ga4g/drs/v1/service-info,
https://drs-server.com/ga4g/drs/v2/service-info ]

In this way you could discover very clearly what are the available versions of DRS on this server and how to make requests for them.

Another point, right now there is no concept of API type. This could (should) be a CV term where we uniquely identify the API supported by this endpoint e.g. [wes, trs, drs, tes, etc]

Compared to our original service-info endpoint, I removed the following:

-title
-contact
-license

Otherwise the service-info endpoint proposal is almost identical to what we had already.

Removed the following:

-title
-contact
-license

Otherwise the [service-info endpoint proposal](https://github.com/ga4gh-discovery/ga4gh-service-info/blob/develop/service-info.yaml) is almost identical to what we had already.
@briandoconnor briandoconnor self-assigned this Jun 3, 2019
@briandoconnor briandoconnor changed the title Update the service-info to use the ga4gh discovery standard in progress Update the service-info to use the ga4gh discovery standard in progress (resolved #264) Jun 3, 2019
Copy link
Member

@dglazer dglazer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 (simple changes; good to be consistent)

@rishidev rishidev changed the title Update the service-info to use the ga4gh discovery standard in progress (resolved #264) Update the service-info to use the ga4gh discovery standard in progress (resolves #264) Jun 4, 2019
type: object
description: License information for the exposed API
description: Description of the service.
documentationUrl:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel it might be worth adding an explicit schemaURL to allow machine code to detect the OpenAPI/Swagger schema used by the service and self-configure. This could point to the GA4GH spec YAML or a local copy that may provide non-breaking extensions.

schemaUrl:
  type: string
  description: URL of the schema of this service (RFC 3986 format).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it, but I think that should be done GA4GH-wide, and we should be consistent -- maybe open an issue in https://github.com/ga4gh-discovery/ga4gh-service-info? (Not sure how they're handling enhancement requests there.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that's right @dglazer, any changes folks want for this should go to https://github.com/ga4gh-discovery/ga4gh-service-info

I'll make my best attempt to keep these in sync but I suspect the powers that be will allow us to bring in last minute changes to /service-info when that finalizes and before we cut an official 1.0 on our APIs.

@dglazer dglazer merged commit 99b7d55 into develop Jun 17, 2019
@dglazer dglazer deleted the feature/issue-264-service-info branch June 17, 2019 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants