Open enddynayn opened 7 months ago
Fyi we have this endpoint already implemented inside content-publisher. Please take a look at https://github.com/AmplicaLabs/content-publishing-service/blob/main/apps/api/src/api.controller.ts#L88
@aramikm you are right. This endpoint is for the Gateway-api service that will proxy the call over to Content-publisher.
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