{
  "opencollection": "1.0.0",
  "info": {
    "name": "Trelica REST Application Users Contracts API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://app.trelica.com/connect/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Contracts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Contracts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.trelica.com/api/contracts/v1",
            "params": [
              {
                "name": "q",
                "value": "",
                "type": "query",
                "description": "Free-text search across contract name and vendor"
              },
              {
                "name": "since",
                "value": "",
                "type": "query",
                "description": "Filter contracts modified after this date/time"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Pagination cursor"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results (default 100)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.trelica.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns a paginated list of software contracts managed in Trelica."
        },
        {
          "info": {
            "name": "Get Contract",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.trelica.com/api/contracts/v1/:contractId",
            "params": [
              {
                "name": "contractId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the contract"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.trelica.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns details for a specific contract by its ID."
        }
      ]
    }
  ],
  "bundled": true
}