{
  "opencollection": "1.0.0",
  "info": {
    "name": "PHAIDRA datastream misc API",
    "version": "3.0"
  },
  "items": [
    {
      "info": {
        "name": "misc",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Test api state",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://services.phaidra.univie.ac.at/api/state"
          },
          "docs": "Returns \"remote_address\". This method is used for monitoring."
        },
        {
          "info": {
            "name": "Get all pids",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://services.phaidra.univie.ac.at/api/utils/get_all_pids"
          },
          "docs": "Get all pids"
        },
        {
          "info": {
            "name": "Get terms of use",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://services.phaidra.univie.ac.at/api/termsofuse"
          },
          "docs": "Get terms of use"
        },
        {
          "info": {
            "name": "Agree to terms of use",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://services.phaidra.univie.ac.at/api/termsofuse/agree/:version",
            "params": [
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "version of the terms of use"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Record the user agreement to a particular version of the terms of use."
        },
        {
          "info": {
            "name": "Get user's settings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://services.phaidra.univie.ac.at/api/settings",
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Currently only used to set default metadata template in some external UIs."
        },
        {
          "info": {
            "name": "Save user's settings.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://services.phaidra.univie.ac.at/api/settings",
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Currently only used to set default metadata template in some external UIs."
        },
        {
          "info": {
            "name": "Get streaming key",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://services.phaidra.univie.ac.at/api/streaming/:pid/key",
            "params": [
              {
                "name": "pid",
                "value": "",
                "type": "path",
                "description": "pid - object id"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "The streaming key can be used when building your own video player. If you want the full video player, use /object/{pid}/preview instead."
        },
        {
          "info": {
            "name": "Checks if the current user agreed to the terms of use.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://services.phaidra.univie.ac.at/api/termsofuse/getagreed",
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Checks if the current user agreed to the terms of use."
        }
      ]
    }
  ],
  "bundled": true
}