airr-community / ogrdb

Website and associated database for managing submissions of inferred alleles
Other
8 stars 1 forks source link

initial openapi3 spec #98

Closed schristley closed 5 months ago

schristley commented 5 months ago

Formalize the OGRDB API as an OpenAPI V3 specification as part of the AKC effort.

schristley commented 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.

schristley commented 5 months ago

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)
williamdlees commented 5 months ago

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: @.***>