Closed schristley closed 5 months ago
Hi @williamdlees here is a starting spec. There are a few initial decisions I made that we should discuss and/or get your feedback on. I didn't implement all of the endpoints, just a few so that we can see what it looks like.
/airr/ogrdb/v1
to put the API under the "AIRR" umbrella.GermlineSet
, I have the response object in a similar form as the ADC API.Here's essentially what I did to validate the spec
from openapi_pydantic import parse_obj, OpenAPI, PathItem, Response
x = yaml.safe_load(open('ogrdb-api-openapi3.yaml','r'))
open_api = OpenAPI.model_validate(x)
Hi Scott,
Thanks, this looks good. Let’s call this v2.0.0, that way even though v1 isn’t called v1, we acknowledge its existence.
I’ve added an automated pydantic check (on this branch) and it appears to be passing.
All the best
William
From: Scott Christley @.> Sent: Friday, April 12, 2024 6:42 PM To: airr-community/ogrdb @.> Cc: William Lees @.>; Mention @.> Subject: Re: [airr-community/ogrdb] initial openapi3 spec (PR #98)
Hi @williamdlees https://github.com/williamdlees here is a starting spec. There are a few initial decisions I made that we should discuss and/or get your feedback on. I didn't implement all of the endpoints, just a few so that we can see what it looks like.
— Reply to this email directly, view it on GitHub https://github.com/airr-community/ogrdb/pull/98#issuecomment-2052199759 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBI7LFIW652SVW4U5LAS3Y5AMHFAVCNFSM6AAAAABGEQLD2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJSGE4TSNZVHE . You are receiving this because you were mentioned.Message ID: @.***>
Formalize the OGRDB API as an OpenAPI V3 specification as part of the AKC effort.