Closed Michael2008S closed 5 years ago
BTW: The two request is:
curl -X "POST" "http://localhost:61020/gcrpc/pmall.category.Category_backstage/ViewById" \
> -H 'Content-Type: application/json; charset=utf-8' \
> -d $'{
quote> "id": "1"
quote> }'
{"data":{"id":"1","parent_cid":"0","icon_url":"url","name":"2a2a","desc":"desc","level":"0","created_at":"2019-02-19T09:36:46.616248Z","updated_at":"2019-02-20T08:39:05.448014Z","deleted_at":null}}%
curl -X "POST" "http://localhost:61020/gcrpc/pmall.goods.Goods_backstage/ViewById" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"id": "1"
}'
{"data":{"id":"1","name":"商品名称","detail":"商品详情","desc":"商品描述","price":100,"origin_price":100,"main_img":"","pics":[],"redeem_score":"15000","category_id":"1","category":{"@googleapis.com/pmall.category.CategoryItem","id":"1","parent_cid":"0","icon_url":"url","name":"2a2a","desc":"desc","level":"0","created_at":"2019-02-19T09:36:46.616248Z","updated_at":"2019-02-20T08:39:05.448014Z","deleted_at":null},"origin":"","stock":"111","created_at":"2019-03-01T03:05:48.753329Z","updated_at":"0001-01-01T00:00:00Z","deleted_at":null,"is_collect":false}}%
please, check my comment on this issue: https://github.com/devopsfaith/krakend/issues/194#issuecomment-460470842
@kpacha I use the https://github.com/twitchtv/twirp framework to generate code as my backend service.
And It only generate the POST
request .So maybe I should change the code by myself 😂.
This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.
This is my config:
get this error: