hyperd icon indicating copy to clipboard operation
hyperd copied to clipboard

Revisit hyper client and api

Open feiskyer opened this issue 8 years ago • 5 comments

The hyper client code should be separated from hyper CLI. And we should also add an optional gRPC api to improve performance.

  • [x] Separate client code and api code #263
  • [x] Prepare types for both current api and gRPC #279
    • proto definition
    • generate types.go
    • fix usage
    • verify in CI
  • [ ] Clean up client/api/ code, move CLI related function to CLI itself
  • [ ] Add ApiVersion to hyperd
  • [ ] Make api more restful and return json object for all APIs
    • This will change API, consider related projects
  • [ ] Add optional gRPC api #296
    • [x] POST, /vm/create #315
    • [x] DELETE, /vm #315
    • [x] GET, /pod/info #296
    • [x] GET, /pod/stats
    • [x] GET, /list #302
    • [x] POST, /pod/create #318
    • [x] POST, /pod/labels
    • [x] POST, /pod/start #345
    • [x] POST, /pod/stop
    • [x] POST, /pod/kill
    • [x] POST, /pod/pause
    • [x] POST, /pod/unpause
    • [x] DELETE, /pod #318
    • [x] GET, /container/info #302
    • [x] GET, /container/logs #324
    • [x] POST, /container/create #335
    • [x] POST, /container/start
    • [x] POST, /container/stop
    • [x] DELETE, /container
    • [ ] POST, /container/rename
    • [ ] POST, /container/commit
    • [x] POST, /container/kill
    • [x] POST, /exec
    • [x] GET, /exitcode #339
    • [x] POST, /attach #344
    • [x] POST, /tty/resize ( will be replaced by /container/$id/tty and /exec/$id/tty in near future)
    • [x] GET, /service/list
    • [x] POST, /service/add
    • [x] POST, /service/update
    • [x] DELETE, /service
    • [x] GET, /images/get #302
    • [x] POST, /image/create
    • [ ] POST, /image/load
    • [x] POST, /image/push
    • [ ] POST, /image/build
    • [x] DELETE, /image
    • [ ] GET, /_ping
    • [x] GET, /info #342
    • [x] GET, /version
    • [ ] POST, /auth

feiskyer avatar Apr 14 '16 06:04 feiskyer

I will take GET, /info for practice.

xlgao-zju avatar May 26 '16 07:05 xlgao-zju

stats, labels will be sent after start

resouer avatar Jun 01 '16 03:06 resouer

I will take POST, /image/load POST, /auth POST, /image/build

heartlock avatar Jul 07 '16 11:07 heartlock

@feiskyer Do we still need this issue for 0.8 and later release?

gnawux avatar Mar 15 '17 10:03 gnawux

There are still some interfaces missing, e.g. image build, container commit and so on. And current http api is still not respect of restful.

feiskyer avatar Mar 15 '17 11:03 feiskyer