Skip to content

Instantly share code, notes, and snippets.

@developerruhul
Created December 25, 2018 06:13
Show Gist options
  • Select an option

  • Save developerruhul/c8d764120eb5589515a6ebb457bad46f to your computer and use it in GitHub Desktop.

Select an option

Save developerruhul/c8d764120eb5589515a6ebb457bad46f to your computer and use it in GitHub Desktop.

POST Related

GET /api/get-followings

response -

[
  { "follow_to": 24, "follow_to_username": "takkar" },
  { "follow_to": 11, "follow_to_username": "nobita" },
  { "follow_to": 32, "follow_to_username": "iamrakib" },
  { "follow_to": 30, "follow_to_username": "doraemon" },
  { "follow_to": 28, "follow_to_username": "selena" },
  { "follow_to": 16, "follow_to_username": "zayn" }
]

NOTE: for now just return this data(hardcode)

POST /api/post-it

payload:

{
    desc: "hello asiq😵😵😵",
    image: "(binary)",
    filter: "filter-aden",
    location: "Unnamed Road, Bangladesh",
    tags: [
      {
        user: 11,
        username: "iamruhul"
      }
    ]
}

return -

{
  "success": true,
  "mssg": "Posted!!",
  "post_id": 106,
  "firstname": "ruhul",
  "lastName": "amin"
}

POST /api/edit-post

payload -

{
  description: "jhjhk",
  post_id: 106
}

response -

{"success":true,"mssg":"Post updated!!"}

POST /api/untag

payload

{
  post: 107,
  user: 11
}

response

{"success":true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment