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

feat: use v3 asset endpoints and drop deprecated v2 #58

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

OlfaBensoussia
Copy link
Contributor

Description

This PR attempts to resolve #48

How to test it

All tests should be passing successfully.


Approach

I had to make some updates on entities because a few of them changed in the v3 expected inputs.
I also dropped the data address endpoints and the old asset ones because they are now deprecated.

@OlfaBensoussia OlfaBensoussia requested a review from ndr-brt August 7, 2023 16:24
@OlfaBensoussia OlfaBensoussia self-assigned this Aug 7, 2023
method: "POST",
apiToken: context.apiToken,
body: {
...input,
"@context": this.defaultContextValues,
},
})
.then(body => expand(body, () => new IdResponse()));
.then((body) => expand(body, () => new IdResponse()));
Copy link
Contributor

Choose a reason for hiding this comment

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

just a question, why do we put brackets also when there's only a parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is done automatically by my linter

@ndr-brt ndr-brt merged commit 7299c1e into main Aug 8, 2023
@ndr-brt ndr-brt deleted the feat/use-v3-asset-endpoints branch August 8, 2023 10:54
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.

Switch asset to the new v3 endpoint
2 participants