Uploaded image for project: 'XNAT'
  1. XNAT
  2. XNAT-3824

Add data items to Project data REST call

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Critical
    • Backlog
    • 1.7
    • REST, Themes
    • 1.7 Release Sprint
    • Rank:
      0|ii0lrr:
    • 1.7 Release Sprint

    Description

      We need more data returned in the REST call that gets project data, or a new REST call that returns basic project data as cleanly structured JSON.

      Something like this maybe:

      {
          "items": [
              {
                  "children": [],
                  "data_counts": {
                      "Subjects": 10,
                      "Experiments": 20,
                      "Visits": 40,
                      "Sessions": 80,
                      "MR Sessions": 20,
                      "etc...": "etc..."
                  },
                  "data_fields": {
                      "secondary_ID": "Project 001",
                      "name": "Project 001",
                      "ID": "prj001",
                      "keywords": ["foo", "bar", "baz"],
                      "aliases": ["alias1", "alias2"],
                      "PI": {
                          "title": "Mr.",
                          "firstname": "Magnum",
                          "lastname": "P.I.",
                          "institution": "",
                          "department": "",
                          "email": "magnumpi@manlyman.com"
                      },
                      "investigators": [
                          {
                              "title": "Sir",
                              "firstname": "Sherlock",
                              "lastname": "Holmes",
                              "institution": "",
                              "department": "",
                              "email": "sherlockholmes@england.telegraph"
                          }
                      ]
                  },
                  "meta": {
                      "create_event_id": 3,
                      "isHistory": false,
                      "xsi:type": "xnat:projectData",
                      "start_date": "Tue Nov 11 11:05:12 CST 2014"
                  }
              }
          ]
      }
      

      Attachments

        Issue Links

          Activity

            People

              jrherrick@wustl.edu Rick Herrick
              markflorida@wustl.edu Mark Florida (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified