main_index¶
The OPTIMADE Index Meta-Database server
The server is based on MongoDB, using either pymongo
or mongomock
.
This is an example implementation with example data. To implement your own index meta-database server see the documentation at https://optimade.org/optimade-python-tools.
add_major_version_base_url(app)
¶
Add mandatory endpoints to /vMAJOR
base URL.
Source code in optimade/server/main_index.py
116 117 118 119 |
|
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_index.py
122 123 124 125 126 127 128 129 130 131 |
|