{
  "opencollection": "1.0.0",
  "info": {
    "name": "Fast ACCOUNT_COSTS DATA_STORE API",
    "version": "0.1.0"
  },
  "items": [
    {
      "info": {
        "name": "DATA_STORE",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Data Stores",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/data_stores/",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Gets all data stores from db\n:param db: database session\n:param auth: auth token."
        },
        {
          "info": {
            "name": "Create Data Store",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/data_stores/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a data store in the database.\n:param db: The database session for accessing the database.\n:param data_store_creation_request: The data store creation request containing the data store definition and other\nmetadata.\n:param auth: The authorization token for the request.\n:return: A data store creation response containing the data store ID, and a message."
        },
        {
          "info": {
            "name": "Get Data Store",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/data_stores/:data_store_id",
            "params": [
              {
                "name": "data_store_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Gets the data store by id\n:param data_store: data_store object fetched from db\n:param auth: auth token.\n:return: A data store fetch response containing the data store definition and other metadata."
        },
        {
          "info": {
            "name": "Update Data Store",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.myaltimate.com/data_stores/:data_store_id",
            "params": [
              {
                "name": "data_store_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update the data store by the provided information\n:param db: database session\n:param data_store: DataStore object fetched from db. This checks if the data store exists.\n:param data_store_update_request: Data Store update request\n:param auth: auth token. Also gets the user_id from the token\n:param id: data store id. This is the path param"
        },
        {
          "info": {
            "name": "Delete Data Store",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.myaltimate.com/data_stores/:data_store_id",
            "params": [
              {
                "name": "data_store_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deletes a data store. If not exists, returns 404\ndb: Session = Depends(get_db) is a dependency injection which returns the db session with the tenant\ndata_store: DataStore to delete\nid: data store id\nauth=Depends(has_token) is a dependency injection which validates and returns the user_id"
        },
        {
          "info": {
            "name": "Get Data Store Types",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/data_stores/types/",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Gets all data store types from db\n:param db: database session\n:param auth: auth token."
        },
        {
          "info": {
            "name": "Validate Data Store",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/data_stores/:data_store_id/validate",
            "params": [
              {
                "name": "data_store_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Validate Data Store"
        },
        {
          "info": {
            "name": "Create Data Store Using Form",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/data_stores/form/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create data stores using form in frontend, in the database.\n:param db: The database session for accessing the database.\n:param data_store_creation_request: The data store creation request containing the data store definition and other\nmetadata.\n:param auth: The authorization token for the request.\n:return: A list of data store creation responses, one for each database processed."
        },
        {
          "info": {
            "name": "Test Data Store Using Form",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/data_stores/form/test_connection/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Test a data store connection using form in frontend.\n:param db: The database session for accessing the database.\n:param data_store_test_connection_request: The data store test connection request containing the data store definition and other\nmetadata.\n:param auth: The authorization token for the request.\n:return: A data store test connection response containing the ok status and a message."
        },
        {
          "info": {
            "name": "Fetch Databases Using Form",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/data_stores/form/fetch_databases/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetch databases using form in frontend.\n:param db: The database session for accessing the database.\n:param data_store_fetch_databases_request: The data store test connection request containing the data store definition and other\nmetadata.\n:param auth: The authorization token for the request.\n:return: A data store test connection response containing the ok status and a message."
        },
        {
          "info": {
            "name": "Get Available Databases",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/data_stores/:data_store_id/available_databases",
            "params": [
              {
                "name": "data_store_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Gets available databases for a data store by id.\nThis endpoint fetches all databases from the data store's connection and filters out\nthe ones that are already in use by other data stores of the same type.\n\n:param data_store_id: The ID of the data store to fetch databases for\n:return: A dictionary containing used and unused databases"
        },
        {
          "info": {
            "name": "Create Basic Data Store",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/data_stores/basic/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a basic data store in the database with just name, type and description.\n:param db: The database session for accessing the database.\n:param data_store_creation_request: The data store creation request containing basic information.\n:param auth: The authorization token for the request.\n:return: A data store creation response containing the data store ID, and a message."
        }
      ]
    }
  ],
  "bundled": true
}