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

Feature(metadata-manager): Additional API #416

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

williamputraintan
Copy link
Member

Add additional API to view records extensively with their link models. The main use case is for UI purposes.

  • /subject/full/

    this also supports filters from the library Id (by using the query ?library_internal_id=L000), perhaps this might be useful to see related library pairs.

     
     results:
     {
         "id": 100,
         "specimen_set": [
             {
                 "id": 101,
                 "library_set": [
                     {
                         "id": 1625,
                         "internal_id": "L0001",
                         ...
                         "specimen": 101
                     }
                 ],
                 "internal_id": "SPC0001",
                 ...
                 "subject": 100
             }
         ],
         "internal_id": "SBJ0001"
     }
    
  • /library/full/

     results:
     {
         "id": 1000,
         "specimen": {
             "id": 1000,
             "subject": {
                 "id": 1000,
                 "internal_id": "SBJ0001"
             },
             "internal_id": "SPC001",
         },
         "internal_id": "L001",
         ...
     }
    

Copy link
Member

@victorskl victorskl left a comment

Choose a reason for hiding this comment

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

Okay, let's give this concept a try.

@williamputraintan williamputraintan merged commit 6d0bc90 into main Jul 19, 2024
5 checks passed
@williamputraintan williamputraintan deleted the feat(mm)/additional-api branch July 19, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants