{
  "CurrentRequestName": "OpenFile",
  "CurrentPath": "Document.rest",
  "Name": "Document",
  "Requests": [
    {
      "Name": "OpenFile",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/documents/{document_id}/open",
      "Method": "GET",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "document_id",
          "TokenName": "{document_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "AddFile",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/documents/file?filename={filename}&tags={tags}&folder_id={folder_id}&document_type_id={document_type_id}&artifact_type_id={artifact_type_id}&artifact_id={artifact_id}",
      "Method": "POST",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "filename",
          "TokenName": "{filename}",
          "Value": ""
        },
        {
          "Name": "tags",
          "TokenName": "{tags}",
          "Value": ""
        },
        {
          "Name": "folder_id",
          "TokenName": "{folder_id}",
          "Value": ""
        },
        {
          "Name": "document_type_id",
          "TokenName": "{document_type_id}",
          "Value": ""
        },
        {
          "Name": "artifact_type_id",
          "TokenName": "{artifact_type_id}",
          "Value": ""
        },
        {
          "Name": "artifact_id",
          "TokenName": "{artifact_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "AddUrl",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/documents/url?url={url}&tags={tags}&folder_id={folder_id}&document_type_id={document_type_id}&artifact_type_id={artifact_type_id}&artifact_id={artifact_id}",
      "Method": "POST",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "url",
          "TokenName": "{url}",
          "Value": ""
        },
        {
          "Name": "tags",
          "TokenName": "{tags}",
          "Value": ""
        },
        {
          "Name": "folder_id",
          "TokenName": "{folder_id}",
          "Value": ""
        },
        {
          "Name": "document_type_id",
          "TokenName": "{document_type_id}",
          "Value": ""
        },
        {
          "Name": "artifact_type_id",
          "TokenName": "{artifact_type_id}",
          "Value": ""
        },
        {
          "Name": "artifact_id",
          "TokenName": "{artifact_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "Delete",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/documents/{document_id}",
      "Method": "DELETE",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "document_id",
          "TokenName": "{document_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "Retrieve1",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/documents",
      "Method": "GET",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "Retrieve2",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/documents/search?start_row={start_row}&number_rows={number_rows}&sort_by={sort_by}",
      "Method": "POST",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "start_row",
          "TokenName": "{start_row}",
          "Value": ""
        },
        {
          "Name": "number_rows",
          "TokenName": "{number_rows}",
          "Value": ""
        },
        {
          "Name": "sort_by",
          "TokenName": "{sort_by}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "RetrieveForFolder",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/document-folders/{folder_id}/documents/search?start_row={start_row}&number_rows={number_rows}&sort_by={sort_by}",
      "Method": "POST",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "folder_id",
          "TokenName": "{folder_id}",
          "Value": ""
        },
        {
          "Name": "start_row",
          "TokenName": "{start_row}",
          "Value": ""
        },
        {
          "Name": "number_rows",
          "TokenName": "{number_rows}",
          "Value": ""
        },
        {
          "Name": "sort_by",
          "TokenName": "{sort_by}",
          "Value": ""
        }
      ]
    },
    {
      "Name": "RetrieveById",
      "Url": "https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/{project_id}/documents/{document_id}",
      "Method": "GET",
      "Body": "",

      "Headers": [
        {
          "Name": "Accept",
          "Value": "application/json"
        },
        {
          "Name": "Content-Type",
          "Value": "application/json"
        }
      ],
      "Parameters": [
        {
          "Name": "project_id",
          "TokenName": "{project_id}",
          "Value": ""
        },
        {
          "Name": "document_id",
          "TokenName": "{document_id}",
          "Value": ""
        }
      ]
    }
  ]
}
