From 5d774643e83154be2b740cd5a090b6aae134d390 Mon Sep 17 00:00:00 2001 From: leonardo Date: Sat, 2 Nov 2024 13:55:53 +0000 Subject: [PATCH] auth for upload as optional --- buds/02.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buds/02.md b/buds/02.md index 3b9b7f0..996f2ce 100644 --- a/buds/02.md +++ b/buds/02.md @@ -42,9 +42,9 @@ The endpoint MUST return a [Blob Descriptor](#blob-descriptor) if the upload was Servers MAY reject an upload for any reason and should respond with the appropriate HTTP `4xx` status code and an error message explaining the reason for the rejection -### Upload Authorization (required) +### Upload Authorization (Optional) -Servers MUST accept an authorization event when uploading blobs and should perform additional checks +Servers MAY accept an authorization event when uploading blobs and should perform additional checks 1. The `t` tag MUST be set to `upload` 2. MUST contain at least one `x` tag matching the sha256 hash of the blob being uploaded @@ -67,7 +67,7 @@ Example Authorization event: } ``` -## GET /list/pubkey - List Blobs +## GET /list/pubkey - List Blobs (Optional) The `/list/` endpoint MUST return a JSON array of [Blob Descriptor](#blob-descriptor) that where uploaded by the specified pubkey