We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description Enhance the existing blog post creation endpoint to allow users to schedule posts for future publication.
published
pending
Request Type: POST Request URL: /api/v1/blogs
/api/v1/blogs
Headers:
Authorization: Bearer <your_access_token> Content-Type: application/json
Payload for immediate publishing:
{ "title": "string", "content": "string", "image_url": "string", "tags": [ "string" ], "excerpt": "string" }
Payload for scheduled publishing:
{ "title": "string", "content": "string", "image_url": "string", "tags": [ "string" ], "excerpt": "string", "scheduled_at": "DDDD-MM-DDT00:00:00Z" }
For immediate publishing:
{ "status": "success" "status_code": 201, "message": "Your blog post has been published successfully.", "data": {} }
For scheduled publishing:
{ "status": "success" "status_code": 201, "message": "Your blog post has been scheduled successfully.", "data": {} }
Unauthorized Request
{ "status": "error" "status_code": 401, "message": "Not authenticated." "data": {} }
Invalid Scheduling Time
{ "status": "error" "status_code": 400, "message": "Scheduled time must be in the future." "data": {} }
Scheduling Failure
{ "status": "error" "status_code": 500, "message": "Failed to schedule blog post." "data": {} }
The text was updated successfully, but these errors were encountered:
@Takinnuoye5
Sorry, something went wrong.
@joboy-dev I've formatted the response correctly. Kindly approve.
No branches or pull requests
Description
Enhance the existing blog post creation endpoint to allow users to schedule posts for future publication.
Requirements
published
orpending
).Example Request
Request Type: POST
Request URL:
/api/v1/blogs
Headers:
Payload for immediate publishing:
Payload for scheduled publishing:
Response [Success]
For immediate publishing:
For scheduled publishing:
Response [Errors]
Unauthorized Request
Invalid Scheduling Time
Scheduling Failure
Testing
The text was updated successfully, but these errors were encountered: