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

Policy Store API: Get policy by ID #803

Open
3 tasks
dsmf opened this issue Jul 15, 2024 · 0 comments
Open
3 tasks

Policy Store API: Get policy by ID #803

dsmf opened this issue Jul 15, 2024 · 0 comments
Labels
api api specific issues policy_store Issues regarding the IRS policy store.

Comments

@dsmf
Copy link
Contributor

dsmf commented Jul 15, 2024

As Trace-X
I want an API endpoint to get a policy by ID
so that I can get a policy with its details and list of associated business partner numbers.

Hints / Details

example:

GET /irs/policies/a1a140d2-eb9a-4ec2-a95b-b9bf52596848

=>

{
	"validUntil": "2025-12-12T23:59:59.999Z",
	"payload": {
		"@context": {
			"odrl": "http://www.w3.org/ns/odrl/2/"
		},
		"@id": "policy1",
		"policy": {
			"policyId": "policy1",
			"createdOn": "2024-07-11T10:39:48.4206493Z",
			"validUntil": "2025-12-12T23:59:59.999Z",
			"permissions": [
				...
			]
		}
	},
	"bpn": [
		"BPNL1234567890AB",
		"BPNL1234567890CD",
		"BPNL9834567890CD"
	]
}

Acceptance Criteria

  • query by existing policy ID returns 200 OK with policy (see example under hints)
  • result includes list of associated business partner numbers
  • query by non-existing policy ID returns 404 with message "Policy not found"

Out of Scope

  • ...
@dsmf dsmf added this to IRS Jul 15, 2024
@dsmf dsmf moved this to inbox in IRS Jul 15, 2024
@dsmf dsmf added policy_store Issues regarding the IRS policy store. api api specific issues labels Jul 15, 2024
dsmf added a commit to dsmf/tx-item-relationship-service that referenced this issue Jul 15, 2024
dsmf added a commit to dsmf/tx-item-relationship-service that referenced this issue Jul 15, 2024
dsmf added a commit to dsmf/tx-item-relationship-service that referenced this issue Jul 15, 2024
dsmf added a commit to dsmf/tx-item-relationship-service that referenced this issue Jul 15, 2024
@mkanal mkanal moved this from inbox to backlog in IRS Jul 17, 2024
dsmf added a commit to dsmf/tx-item-relationship-service that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api api specific issues policy_store Issues regarding the IRS policy store.
Projects
Status: backlog
Development

No branches or pull requests

1 participant