Description
We need to implement a new PUT endpoint to allow to editing content of a specific post. This allows users to update their post without creating a new one,
Acceptance Criteria
[ ] Add GET /v1/content/{type}/{contentHash}
[ ] Ensure type and contentHash is required.
[ ] Ensure authentication is required.
[ ] Update the OpenAPI swagger documentation.
Technical SpecsEndpoint: PUT /v1/content/{type}/{contentHash}
Authentication: Required (tokenAuth)
Parameters:
contentHash (string, required): The hash of the post content to be edited.
type (string, required, "Broadcast" or "Reply"): The type of the post.
Request Body: Must match the EditPostRequest schema, requiring targetContentHash, targetAnnouncementType, and content.
Responses:
200 OK: The edited post details, matching the BroadcastExtended schema.
401 Unauthorized: Attempt to access the endpoint without authentication.
Description We need to implement a new PUT endpoint to allow to editing content of a specific post. This allows users to update their post without creating a new one,
Acceptance Criteria
/v1/content/{type}/{contentHash}
type
andcontentHash
is required.Technical Specs
Endpoint:
PUT /v1/content/{type}/{contentHash}Authentication:
Required (tokenAuth)Parameters:
Request Body:
Must match the EditPostRequest schema, requiring targetContentHash, targetAnnouncementType, and content.Responses:
Open API Snippet