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 license name to published project REST API #2308

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

bemoody
Copy link
Collaborator

@bemoody bemoody commented Oct 1, 2024

It's helpful to have information about project licenses in (somewhat) machine readable form. This is already included in the list of all projects (/api/v1/project/published/); add it to the per-project information (/api/v1/project/published/demoeicu/2.0.0/) as well.

Example

{
   "abstract" : "<p>The eICU Collaborative Research Database is a large multi-center critical care database made available by Philips Healthcare in partnership with the MIT Laboratory for Computational Physiology.</p>",
   "compressed_storage_size" : 3090,
   "doi" : "10.13026/G2F309",
   "license" : {
      "name" : "PhysioNet Credentialed Health Data License 1.5.0"
   },
   "main_storage_size" : 3195,
   "project_home_page" : "https://eicu-crd.mit.edu/",
   "publish_datetime" : "2018-12-17T16:11:17.040000-05:00",
   "short_description" : "",
   "slug" : "demoeicu",
   "title" : "Demo eICU Collaborative Research Database",
   "version" : "2.0.0"
}

Benjamin Moody added 3 commits October 1, 2024 14:03
In the REST API at /api/v1/project/published/SLUG/VERSION/, add the
license name (the same way as in /api/v1/project/published/.)
@tompollard
Copy link
Member

looks good to me!

@tompollard tompollard merged commit ac055fb into dev Oct 1, 2024
8 checks passed
@tompollard tompollard deleted the bm/rest-project-license branch October 1, 2024 19:37
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.

2 participants