Skip to content

Conversation

@isabelizimm
Copy link
Contributor

closes #169

async def ping():
return {"ping": "pong"}

@app.get("/metadata")
Copy link
Contributor Author

@isabelizimm isabelizimm Apr 12, 2023

Choose a reason for hiding this comment

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

This was, in fact, pretty small to add! But now I wonder if we need to expose prototypes as well?

Copy link
Member

Choose a reason for hiding this comment

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

I think that would be a nice addition, while we're working on the API, but let's add it with an argument (for folks with high data privacy needs). I think opt-out (so defaulting to adding the prototype endpoint) is OK for this.

Copy link
Member

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

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

This looks great!

When I made the similar change in rstudio/vetiver-r#194, I realized that some of my testing strategy for model types was a little bonkers 🙈 but I hopefully improved it.

@isabelizimm isabelizimm merged commit ebaddb5 into main Apr 17, 2023
@isabelizimm isabelizimm deleted the get-meta branch May 25, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add /GET endpoint to host metadata

2 participants