Skip to content

docs: document storage upload HTTP API for edge functions #15

@MajorTal

Description

@MajorTal

Problem

The CLI docs show run402 storage upload but don't document the HTTP API for uploading from an edge function. Had to guess the URL pattern and auth header.

Suggested Solution

Add to the storage section or functions section:

// Upload from an edge function
const res = await fetch('https://api.run402.com/storage/v1/upload/my-bucket/path/file.pdf', {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.RUN402_SERVICE_KEY },
  body: fileBuffer,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationfeedback:wild-lycheeFeedback from Wild Lychee build

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions