algorand / algorand/go-algorand

Convert KMD API Server to new generated framework

Offen
#1,814 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
FDE
Vorherrschende Sprache
Go
Sterne
1.4k
Forks
537
Ø Merge
1 T. 6 Std.
Gemergte PRs (30 T.)
17

Beschreibung

## Summary
The algod/indexer v2 servers have a new spec first server layer, we should convert KMD to use the same process. This would allow us to remove all of the build time swagger dependencies, and allow us to use the KMD spec to generate clients as well like we do for some SDKs with the v2 clients.

## Scope/Requirements
Fixup the generated KMD specfile and use oapi-codegen to generate new server code. Replace the existing server with the new one.

There should be no user facing changes in this process to avoid needing to change existing clients at this time.

## Urgency/Relative Priority
This change would allow us to clean up some things:
1. remove the `swagger` tool from build dependency and build. This tool has broken the build many times in the past, and the spec it generates isn't even correct. It needs to go away. (this also depends on removing the algod v1 API). (Dev Ops has to manually fix this every time)
2. makes the HTTP server code more consistent by having a single framework instead of two.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.