Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

So the best way to reuse code is as below:

Image RemovedImage Added

We integrate these green colored modules to milvus-proxy, so that it can handle http calls.

After the http request parsed, it's translated into the same req struct as we mentioned above, and the rest things can be done by the gRPC handlers which were already implemented.

TODO Tasks:

Preparation:

  • Refine the design details.
  • Decide on which web server framework we should use.
  • Initialize the framework together with an example of API code.


Coding:

  • Implements the APIs listed in milvus.proto one by one: each of us first claims a part of all the APIs, and finish them. (38 APIs in all)
    • Convert gRPC method to RESTful API
    • Implement API handler
    • Write unit test


Testing:

  • Add integration tests.

Test Plan(required)

  • unit test with the go `httptest` package: example

...