main¶
The OPTIMADE server
The server is based on MongoDB, using either pymongo
or mongomock
.
This is an example implementation with example data. To implement your own server see the documentation at https://optimade.org/optimade-python-tools.
add_major_version_base_url(app)
¶
Add mandatory vMajor endpoints, i.e. all except versions.
Source code in optimade/server/main.py
127 128 129 130 |
|
add_optional_versioned_base_urls(app)
¶
Add the following OPTIONAL prefixes/base URLs to server:
/vMajor.Minor
/vMajor.Minor.Patch
Source code in optimade/server/main.py
133 134 135 136 137 138 139 140 141 142 |
|
lifespan(app)
async
¶
Add dynamic endpoints on startup.
Source code in optimade/server/main.py
50 51 52 53 54 55 56 57 58 59 |
|