fission-codes / fission

Fission CLI & server
https://runfission.com/docs
119 stars 14 forks source link

Append endpoint DAG surgery #608

Closed icidasset closed 2 years ago

icidasset commented 2 years ago

This PR implements most of the functionality needed for the HTTP endpoint that appends a file to the DAG of an app.

Based on the append-endpoint branch.

This doesn't check for the correct resources in the provided UCAN, that'll be a separate PR.

PUT "http://runfission.test:1337/v2/api/append/app-name/file.name"

Content-Type: application/octet-stream
Authorization: Bearer UCAN

204 No Content