Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.09 KB

get-post-by-slug.md

File metadata and controls

53 lines (40 loc) · 1.09 KB
title method slug
Get post by slug
GET
/api/v1/posts/get-post-by-slug

Fetch all posts

https://yourdomain.com/api/v1/post/:slug

Headers

Key Value Description
Content-Type application/json

Params

Fields Type Description Required
slug String Post slug true

Example

https://yourdomain.com/api/v1/post/allow-user-to-upload-image-from-cloud

Response

Fields Type Description
status.code Integer Response code from server
status.type String Response status type (success/fail)
posts Object Post data

You can see post data object in createPost.

Example

{
  "status": {
    "code": 200,
    "type": "success"
  },
  "post": {
    // post data oboject
  }
}