API Documentation

Explore our API endpoints for secure file sharing.

                
openapi: 3.0.0
info:
  title: File Share API
  description: API for secure file sharing services
  version: 1.0.0
servers:
  - url: https://api.file-share.me/v1
paths:
  /files:
    get:
      summary: List all files
      responses:
        '200':
          description: A list of files
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                    size:
                      type: integer
                    created_at:
                      type: string
                      format: date-time
  /files/{fileId}:
    get:
      summary: Get a file by ID
      parameters:
        - name: fileId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: File details
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  size:
                    type: integer
                  created_at:
                    type: string
                    format: date-time