{
  "opencollection": "1.0.0",
  "info": {
    "name": "Fast ACCOUNT_COSTS CONTRACT API",
    "version": "0.1.0"
  },
  "items": [
    {
      "info": {
        "name": "CONTRACT",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Contracts By Registry",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/registries/:registry_id/contracts/",
            "params": [
              {
                "name": "registry_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetches all the contracts for a tenant in a registry.\nparam db: The database session for accessing the database and the tenant schema.\nparam registry: The registry the contract is being fetched from\nparam auth: The authorization token for the request.\nreturn: A dictionary containing all the contracts"
        },
        {
          "info": {
            "name": "Create Contract In Registry",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/registries/:registry_id/contracts/",
            "params": [
              {
                "name": "registry_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a contract in the registry and database.\n1. Checks if the contract already exists in the registry.\n2. Validates the contract. If invalid, raise exception\n3. If it does not exist, creates the contract in the registry.\n4. If it exists and is same do nothing. Else create a new version.\n\n\n:param db: The database session for accessing the database.\n:param contract_request: The contract creation request containing the contract definition and other metadata.\n:param tenant: The tenant object for "
        },
        {
          "info": {
            "name": "Validate Contract Definition Dry Run",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/registries/:registry_id/contracts/definitions/validate",
            "params": [
              {
                "name": "registry_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a contract in the registry and database.\n1. Checks if the contract already exists in the registry.\n2. Validates the contract. If invalid, raise exception\n3. If it does not exist, creates the contract in the registry.\n4. If it exists and is same do nothing. Else create a new version.\n\n\n:param db: The database session for accessing the database.\n:param contract_request: The contract creation request containing the contract definition and other metadata.\n:param tenant: The tenant object for "
        },
        {
          "info": {
            "name": "Get Contracts By Registry And Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/registries/:registry_id/contracts/:contract_id",
            "params": [
              {
                "name": "registry_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetches a contract by id. Only fetches if it exists in the provided registry\nparam auth: The authorization token for the request.\nparam contract: The fetched contract object\nreturn: A dictionary containing the contract"
        },
        {
          "info": {
            "name": "Delete Contract From Registry By Id",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.myaltimate.com/registries/:registry_id/contracts/:contract_id",
            "params": [
              {
                "name": "registry_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deletes a contract from the registry\n\nThe contract is deleted from the db and the registry.\n\n:param db: The database session to use for deleting the tenant's data.\n:param contract: The contract to delete.\n:param auth: The authentication header.\n:return: A dictionary containing the result of the operation."
        },
        {
          "info": {
            "name": "Validate",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/registries/:registry_id/contracts/:contract_id/validate",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "registry_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Validates data against a contract.\nparam auth: The authorization token for the request.\nparam contract: The contract object\nparam validation_request: The validation request containing the data to be validated\nparam tenant: The tenant object for the tenant associated with the request."
        },
        {
          "info": {
            "name": "Schedule Validation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/registries/:registry_id/contracts/:contract_id/schedule_validation",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "registry_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Validates data against a contract.\nparam auth: The authorization token for the request.\nparam contract: The contract object\nparam validation_request: The validation request containing the data to be validated\nparam tenant: The tenant object for the tenant associated with the request."
        },
        {
          "info": {
            "name": "Get Contract Configuration For Profile",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/registries/:registry_id/contracts/:contract_id/configurations",
            "params": [
              {
                "name": "registry_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Gets the metric configuration for all the contracts of a source.\n:param auth: The authentication header.\n:param db_registry: The registry contains the contract.\n:param db_contract: The contract to get the configuration for.\n:return: A dictionary containing the profile configuration."
        },
        {
          "info": {
            "name": "Fetch Contracts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/contracts/",
            "params": [
              {
                "name": "data_store_name",
                "value": "",
                "type": "query"
              },
              {
                "name": "fqn_path",
                "value": "",
                "type": "query"
              },
              {
                "name": "contract_type",
                "value": "",
                "type": "query"
              },
              {
                "name": "contract_name",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetches contracts by metadata. Filters based on the provided query parameters.\nIf None, them not filtered based on that\n:param auth: The authorization token for the request.\n:param db: The database session to use for fetching the contracts.\n:param data_store_name: The name of the data store.\n:param fqn_path: The fully qualified name path. This can be provided partially\n:param contract_type: The type of the contract.\n:param contract_name: The name of the contract.\n:return: A dictionary containing"
        },
        {
          "info": {
            "name": "Delete All Contracts",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.myaltimate.com/contracts/",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deletes all contracts for a tenant.\n\nThe tenant is deleted by deleting all files and directories in the contract registry that are associated with the\ntenant. The tenant's data is also deleted from the database.\n\n:param db: The database session to use for deleting the tenant's data.\n:param tenant: The tenant to delete.\n:param auth: The authentication header.\n:return: A dictionary containing the result of the operation."
        },
        {
          "info": {
            "name": "Fetch Contract List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/contracts/list",
            "params": [
              {
                "name": "sort_order",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_column",
                "value": "",
                "type": "query"
              },
              {
                "name": "contract_owner",
                "value": "",
                "type": "query"
              },
              {
                "name": "contract_status",
                "value": "",
                "type": "query"
              },
              {
                "name": "last_violation_timestamp",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number"
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "Page size"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetches contract list by conditions. Filters based on the provided query parameters.\nIf None, them not filtered based on that"
        },
        {
          "info": {
            "name": "Fetch Contract Detail",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/contracts/details/:contract_id",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetches contract detail by contract_id"
        },
        {
          "info": {
            "name": "Fetch Contracts By Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/contracts/:contract_id",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetches a contract by id.\n:param auth: The authorization token for the request.\n:param contract: The fetched contract object"
        }
      ]
    }
  ],
  "bundled": true
}