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

reorg models #14

Merged
merged 2 commits into from Jun 12, 2019
Merged

reorg models #14

merged 2 commits into from Jun 12, 2019

Conversation

dwinston
Copy link
Contributor

@dwinston dwinston commented Jun 12, 2019

Instead of one giant optimade.server.models module (file), optimade.server.models is now a subpackage (folder) with submodules:

  • jsonapi (classes implenting the JSON API spec)
  • util (low-level utilities used by other models)
  • baseinfo (for the base /info endpoint)
  • entries (for /entries, /entries/{id}, /entries/info)
  • structures (for structure entries, i.e. /structures/*)
  • toplevel (for top-level optimade responses. imports from other models modules)

It is fine to suggest adding submodules or moving classes to other (new) submodules.

@ml-evs
Copy link
Member

ml-evs commented Jun 12, 2019

lgtm, pending travis fix

@dwinston dwinston merged commit bcefa54 into master Jun 12, 2019
@ml-evs ml-evs deleted the reorg-models branch June 12, 2019 10:50
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.

None yet

2 participants