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

Dynamic search request model based on extensions #203

Closed
rsmith013 opened this issue Aug 5, 2021 · 2 comments · Fixed by #213
Closed

Dynamic search request model based on extensions #203

rsmith013 opened this issue Aug 5, 2021 · 2 comments · Fixed by #213

Comments

@rsmith013
Copy link

At the moment, the GET and POST endpoints are based on static models and are different.
Would be good to have a dynamic model which contains the core stac endpoints and is modified by the enabled extensions to represent the state of the API at runtime.

@geospatial-jeff
Copy link
Collaborator

Good idea! Pydantic has a function to programmatically generate a model which should do the trick.

@rsmith013
Copy link
Author

indeed. It is already being used. I am not sure what the Body class is for here but I am leaving it there as I don't understand it! 😆

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 a pull request may close this issue.

2 participants