-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description 1Inch requested all integrations to move to their new 1Inch dev portal (similar to what 0x did not too long ago). # Changes This basically just needs 3 changes: 1. change base URL 2. add some prefix path in the url (in our case all APIs belong to the `/swap` group) 3. add the `Authorization: Bearer API_KEY` header to all requests (happens in cowprotocol/infrastructure#828) ## How to test Did a manual test running all the ignored `oneinch_api` tests which do actual requests to the API (note that this needed a slight modification to the code adding the `Authorization` header. <img width="686" alt="Screenshot 2023-10-31 at 19 52 47" src="https://github.com/cowprotocol/services/assets/19190235/8804a5ea-d8ba-4248-8dbf-1ca57b46fbab">
- Loading branch information
1 parent
42d9618
commit cb8accd
Showing
2 changed files
with
14 additions
and
14 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