Commit 9a96668
authored
Update project serializer to include publish_date, doi, version (#2378)
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.1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
39 | 57 | | |
40 | 58 | | |
| 59 | + | |
| 60 | + | |
41 | 61 | | |
42 | 62 | | |
43 | 63 | | |
44 | 64 | | |
45 | 65 | | |
46 | 66 | | |
47 | 67 | | |
| 68 | + | |
48 | 69 | | |
49 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
50 | 74 | | |
51 | 75 | | |
52 | 76 | | |
| |||
0 commit comments