algorand / algorand/go-algorand

Convert KMD API Server to new generated framework

Abierto
#1,814 0 comentarios 0 reacciones 0 asignados Ver en GitHub
FDE
Lenguaje dominante
Go
Estrellas
1.4k
Forks
537
Merge medio
1 d 7 h
PR fusionados (30 d)
18

Descripción

## 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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.