Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
The trust framework catalogue MUST support a GET call to a /parties endpoint to retrieve a list of DSGO participants in an array of party_info objects as payload value of a Authenticatie JWT.
Request
Authorization
An access token is used in GET calls to the /parties endpoint. For more information, see Access Token.
The trust framework catalogue MUST validate that a GET call to a /parties endpoint includes the “Authorization" header according to RFC 6750 and includes a valid access token
The trust framework catalogue MUST validate that the HTTP body of a GET request to the /parties endpoint contains the parameters as defined in the table below
The trust framework catalogue MUST validate that the HTTP body of a GET request to the /parties endpoint contains at least a single parameter.
Parameter
Type
Description
Parameter
Type
Description
name
Optional
String
Used to search by a party’s name. MUST be the party’s name or contain a single * as wildcard instead
party_id
Optional
String
Used to search by a party’s identifier. MUST contain a valid DSGO Organisation ID
active_only
Optional
Boolean
Used to search all active parties. MUST be equal to null, false or true. If null is provided, then it will not affect the query and will return both active and inactive parties. If false is provided, then the query will return inactive parties. If true is provided, then the query will return active parties.
page
Optional
Integer
Used for navigation in case the result contains more than 10 parties, MUST contain an integer.
> Authorization: Bearer IIeDIrdnYo2ngwDQYJKoZIhvcNAQELBQAwSDEZMBcGA1UEAwwQaVNIQ
GET /parties?active_only=true
Responses
400 Bad Request
When Authorization header is provided, but the token format is invalid (for example, not Bearer). Additionally, a 400 should be returned when the provided access token is valid, but query parameters are either invalid or none of them were provided.
401 Unauthorized
When Authorization header is either missing, invalid or the access token has already expired.
200 OK
If successful, the response contains data providing the requested parties information in a parties_token. The parties_token is a signed JWT, which contains the claims as defined in the Authentication JWT, and additionally contains a parties_info object containing an array of party_info objects as defined here.
The trust framework catalogue MUST include a parties_token including a parties_info object in a response to a successful GET calls to the /parties endpoint