How do I POST JSON data with cURL?

后端 未结 24 2562
刺人心
刺人心 2020-11-21 23:56

I use Ubuntu and installed cURL on it. I want to test my Spring REST application with cURL. I wrote my POST code at the Java side. However, I want to test it with cURL. I am

24条回答
  •  一生所求
    2020-11-22 00:44

    If you configure the SWAGGER to your spring boot application, and invoke any API from your application there you can see that CURL Request as well.

    I think this is the easy way of generating the requests through the CURL.

提交回复
热议问题