Skip to content

Conversation

nagem
Copy link
Contributor

@nagem nagem commented Jul 25, 2017

Allows clients to optionally show "view info" when file has an info field that was withheld (on list endpoints).

New endpoints

List endpoints will get a new key on files: info_exists, a boolean.

Example:

GET base_url/api/sessions/<session_id>/acquisitions

[
  {
    "files": [
      {
        "origin": {},
        "info_exists": true,
        "measurements": ["localizer"],
        "name": "149_1_1_localizer.dicom.zip",
        "created": "2017-07-19T17:54:00.355000+00:00",
        "modified": "2017-07-19T17:58:01.127000+00:00",
        "type": "dicom",
        "modality": "MR"
        ...
     

Breaking Changes

None

Review Checklist

  • Tests were added to cover all code changes
  • Documentation was added / updated
  • Code and tests follow standards in CONTRIBUTING.md

@nagem nagem requested a review from hkethi002 July 25, 2017 21:24
@nagem nagem merged commit ea237d7 into master Jul 26, 2017
@nagem nagem deleted the add-info-exists branch July 26, 2017 15:31
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.

1 participant