dyweb / go.ice

A server application toolkit with profiling in mind
MIT License
6 stars 2 forks source link

[design] Generate http server & client based on code/spec #35

Open at15 opened 5 years ago

at15 commented 5 years ago

This issue is track the trail implementation and references. It is originated from the discussion in https://github.com/dyweb/weekly/issues/91

The main idea is to generate code to avoid manually write json encode/decode and stub func GetXXX so that writing REST API can feel like writing RPC.

There are following approaches

And some extra rules

@at15 prefer the middle one (currently)

Reference

Newly added