The current situation, motivation for this task
The current CLI client implementation is not together with api-server, which makes it difficult to conduct more effective testing, and it's also challenging to ensure version compatibility.
Describe the solution
Move CLI's code interacting with API server to src/api-server/http/client/client.go
Add tests for these client APIs:
Launch API Server's http server (only need create SQLite db file, grafana, pg)
The current situation, motivation for this task The current CLI client implementation is not together with api-server, which makes it difficult to conduct more effective testing, and it's also challenging to ensure version compatibility.
Describe the solution Move CLI's code interacting with API server to src/api-server/http/client/client.go Add tests for these client APIs:
Describe alternatives considered None
Additional context None