Skip to content

Update project serializer to include publish_date, doi, version#2378

Merged
Chrystinne merged 1 commit intodevfrom
tp/project_serializer
Apr 7, 2025
Merged

Update project serializer to include publish_date, doi, version#2378
Chrystinne merged 1 commit intodevfrom
tp/project_serializer

Conversation

@tompollard
Copy link
Member

We have an API at http://localhost:8000/api/v1/project/published/search that allows users to export metadata about published projects.

The API is potentially useful for people who are developing tools that interface with PhysioNet content (e.g. the MEDS project: https://github.com/Medical-Event-Data-Standard.

The metadata returned from queries is defined in PublishedProjectSerializer. This pull request updates this serializer to include the following fields:

  • version (important, because otherwise a search returns what look like duplicate results, one result for each version).
  • core_doi
  • version_doi -> (from doi)
  • is_latest_version
  • short_description
  • publish_date

Also adds a citation string to the ProjectVersionsSerializer method.

…ription. Update version serializer to include citation.
@tompollard tompollard requested a review from Chrystinne April 7, 2025 20:45
Copy link
Collaborator

@Chrystinne Chrystinne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Chrystinne Chrystinne added this pull request to the merge queue Apr 7, 2025
Merged via the queue into dev with commit 9a96668 Apr 7, 2025
8 checks passed
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