Skip to content

Instantly share code, notes, and snippets.

@ayatmaulana
Created November 21, 2018 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayatmaulana/f62f50e6ba864efbd1765d3a1d9e0b29 to your computer and use it in GitHub Desktop.
Save ayatmaulana/f62f50e6ba864efbd1765d3a1d9e0b29 to your computer and use it in GitHub Desktop.

Endpoint: http://localhost:3000/v1/users/notification/read/:id Method: PATCH Headers:

  • Authorization: Bearer {tokenUser}

success response

{
    "isRead": true,
    "_id": "5bec0a16bda8945c1dbed4ac",
    "userId": 11,
    "title": "Selamat Ulang Tahun!",
    "body": "Ayat Maulana, CFC mengucapkan Selamat Ulang Tahun.",
    "contentUrl": "http://localhost/",
    "fallbackUrl": "http://localhost/",
    "brand": "CFC",
    "iconUrl": "https://av-uploads.s3.amazonaws.com/merchant_icon/image-icon-20170302103656.jpg",
    "createdAt": "2018-11-14T11:42:14.109Z",
    "updatedAt": "2018-11-14T11:42:42.594Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment