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

Add ability to download schema as an xml #2594

Closed
2 tasks done
maxpatiiuk opened this issue Dec 13, 2022 · 2 comments · Fixed by #3051
Closed
2 tasks done

Add ability to download schema as an xml #2594

maxpatiiuk opened this issue Dec 13, 2022 · 2 comments · Fixed by #3051
Labels
1 - Request Improvements or extensions to existing behavior good first issue

Comments

@maxpatiiuk
Copy link
Member

maxpatiiuk commented Dec 13, 2022

Database schema is stored as an XML
XML is parsed by the back-end and sent as JSON to the front-end.
It would be useful to also have an endpoint for getting back-end schema as an XML.
That would be useful because then you would be able to add a "Download as XML" button to the Schema Viewer page.

TODO:

  • Add an endpoint for accessing data model as an XML
  • Add a button to download the XML data model to the Schema Vieewr
@maxpatiiuk maxpatiiuk added 1 - Request Improvements or extensions to existing behavior good first issue pri:unknown labels Dec 13, 2022
@maxpatiiuk
Copy link
Member Author

maxpatiiuk commented Feb 26, 2023

Turns out an endpoint for this already exists: /static/config/specify_datamodel.xml
In fact, you can access any sp6 files at /static/config/ url

@specifysoftware
Copy link

This issue has been mentioned on Specify Community Forum. There might be relevant details there:

https://discourse.specifysoftware.org/t/specify-7-8-7-release-announcement/1079/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Request Improvements or extensions to existing behavior good first issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants