-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add optimade end points #42
base: main
Are you sure you want to change the base?
Add optimade end points #42
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting this started!
- Can you check whether it would be possible to mount the original optimade fastapi structures router as a sub-application? Otherwise it seems like we would need to re-implement a lot of things here.
- I assume we don't actually need the
models/optimade
module since we can import the models directly from theoptimade
package published on PyPI, correct?
Thanks! This is something I am looking for. I'll give it a try.
Yes, I think we are supposed to reuse all the models. |
In this case, please remove that empty module. |
I think for the standard-app-api, we only put the placeholder here for openAPI generation and for app developers to implemented. Pinning @CasperWA for comment. |
Maybe we can use something like https://github.com/ioxiocom/openapi-to-fastapi to generate our own scaffold? |
Have an offline discussion with Casper, and the sub-app is good to use since the routers of optimade-python-tools are also abstract implementations,s and it just a bit more details and can be overridden by a new optimade database implementation. The validation check between python module and open API JSON can be generated and done with optimate API as sub-app. I'll check and continue with this line. |
The OPTIMADE Python tools example server is not an abstract implementation, but that shouldn't matter if you're only after the the generated OpenAPI? |
Yes, this is what I understand. |
This is not what the OPTIMADE Python tools example server is doing - but it shouldn't matter if what you're after is just the OpenAPI specification. I'd confer with the OPTIMADE Python tools documentation. |
Implementation of #14
@csadorf this is a draft implementation of the OPTIMADE endpoints, start from adding
getOptimadeVersions
andgetOptimateStructure
capabilities. Please have a look and let me know if it is the right direction to our goal. Thanks!