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

API v2 #1847

Draft
wants to merge 3 commits into
base: staging
Choose a base branch
from
Draft

API v2 #1847

wants to merge 3 commits into from

Conversation

manuelwedler
Copy link
Collaborator

@manuelwedler manuelwedler commented Jan 8, 2025

base PR for API v2 milestone. Progress tracked here: #1367

Any change for this feature should be created in a PR against this apiv2 branch.

manuelwedler and others added 2 commits January 13, 2025 09:18
* Add APIv2 OpenAPI specification

`apiv2.yaml` is directly retrieved from Stoplight and can just be copy-pasted again when an update is needed in the future

Needed to change the mode of the validator's refparser because the we reference the same file multiple times now

* Deprecate API v1 endpoints

* Move (Deprecated) to the beginning of titles

* Make Solidity metadata explicit

---------

Co-authored-by: Kaan Uzdoğan <[email protected]>
* Move `safeHandler` to common.ts

* Update API v2 spec

* Add `v2/contracts/{chainId}` API endpoint

Includes the initial setup of routes and types needed for API v2, as it's the first endpoint

* Fix server test commands

Some shells require mocha's `recursive` option to go through all subdirectories

* Move API v1 routes to apiv1 folder

* Update API v2 spec

* Change pagination to be id based

* Add `getTotalMatchLevel` util function

* Rename MatchLevel types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

Successfully merging this pull request may close these issues.

1 participant