-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: return collections as arrays, generic primary identifiers (#135)
BREAKING CHANGE: return collection as an array of objects instead of a map, rename primary identifier The response types for the following endpoints have been changed from a map of objects to an array of objects: - `/v0/holder/credentials` - `/v0/holder/offers` - `/v0/holder/presentations` - `/v0/connections` - `/v0/services` - `/v0/credentials` - `/v0/offers` ### Before ``` { { "credential_id": "bf766ebe-0a52-4531-ac24-88af1b854b55" ... } } ``` ### After ``` [ { "id": "bf766ebe-0a52-4531-ac24-88af1b854b55" ... } ] ``` ### Migration guide - Parse responses as lists instead of objects - Use the generic `id` property instead of having to search the response for the identifier
- Loading branch information
1 parent
a019dea
commit e225131
Showing
33 changed files
with
317 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.