Restlet implementing post with json receive and response

后端 未结 2 1004
我在风中等你
我在风中等你 2021-02-06 11:09

First, what i wanted to know is what i am doing is the right way to do it.

I have a scenario where i have will receive a json request and i have to update the database w

2条回答
  •  北海茫月
    2021-02-06 11:25

    When I use the following JSON as the request, it works:

    {"request": {"id": "1", "request-url": "http://thoughtclicks.com/status"}}
    

    Notice the double quotes and additional colon that aren't in your sample.

提交回复
热议问题