DagsHub Storage API

The Storage API from DagsHub — 2 operation(s) for storage.

OpenAPI Specification

dagshub-storage-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: DagsHub REST Branches Storage API
  description: DagsHub's REST API mirrors the Gitea API for repositories, issues, pull requests, branches, and users, with DagsHub-specific extensions for data storage (DVC/S3), data engine queries, and storage integrations. Authenticates with an API token via Bearer header or basic auth.
  version: 1.0.0
servers:
- url: https://dagshub.com/api/v1
  description: DagsHub REST API base URL
security:
- bearerAuth: []
- basicAuth: []
tags:
- name: Storage
paths:
  /repos/{owner}/{repo}/storage:
    parameters:
    - in: path
      name: owner
      required: true
      schema:
        type: string
    - in: path
      name: repo
      required: true
      schema:
        type: string
    get:
      tags:
      - Storage
      summary: List storage integrations (DVC, S3) for a repository
      responses:
        '200':
          description: Storage list
  /repos/{owner}/{repo}/storage/{provider}/{name}:
    parameters:
    - in: path
      name: owner
      required: true
      schema:
        type: string
    - in: path
      name: repo
      required: true
      schema:
        type: string
    - in: path
      name: provider
      required: true
      schema:
        type: string
    - in: path
      name: name
      required: true
      schema:
        type: string
    get:
      tags:
      - Storage
      summary: List contents of a storage integration
      responses:
        '200':
          description: Storage contents
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: DagsHub access token sent as a Bearer token.
    basicAuth:
      type: http
      scheme: basic
      description: Username and DagsHub access token via HTTP Basic auth.