Skip to content
New issue

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

PP-617 Added the device registration link to the patron profile document #1478

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

RishiDiwanTT
Copy link
Contributor

@RishiDiwanTT RishiDiwanTT commented Oct 25, 2023

Description

Hard coded the device registrations url into the patron profile document
Example Document

{
  "simplified:authorization_identifier": "01230000000041",
  "settings": {
    "simplified:synchronize_annotations": null
  },
  "links": [
    {
      "rel": "http://palaceproject.io/terms/deviceRegistration",
      "type": "application/json",
      "href": "http://localhost:6500/localtest/patrons/me/devices/"
    }
  ]
}

Motivation and Context

The endpoint for push notification token registration is currently has to be known by the apps. Instead we should include this link in the patron profile document, so its discoverable by the apps.
JIRA

How Has This Been Tested?

Manually tested the patron profile document.
Updated the unit tests.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@RishiDiwanTT RishiDiwanTT requested a review from a team October 25, 2023 10:40
@RishiDiwanTT RishiDiwanTT self-assigned this Oct 25, 2023
Copy link
Member

@jonathangreen jonathangreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🚀

@RishiDiwanTT RishiDiwanTT merged commit 39abc33 into main Oct 26, 2023
28 checks passed
@RishiDiwanTT RishiDiwanTT deleted the feature/device-registration-links branch October 26, 2023 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants