rizo

OBTENER solicitud

curl http: // localhost: 8888 / mock / api

Solicitud POST (-X se puede omitir, -d es el parámetro POST de forma predeterminada)

curl -X POST -d ' {"name": "api1", "content": "api1 conent", "method": "get", "url": "/ users"} ' -H ' Content-Type: application / json ' http: // localhost: 8888 / mock / api

PONER solicitud

curl -X PUT -d ' {"name": "api1", "content": "api1 conent", "method": "get", "url": "/ users"} ' -H ' Content-Type: application / json ' http: // localhost: 8888 / mock / api

Solicitud DELETE

curl -X DELETE -d ' {"name": "api1", "content": "api1 conent", "method": "get", "url": "/ users"} ' -H ' Content-Type: application / json ' http: // localhost: 8888 / mock / api

 

 

 

 

Supongo que te gusta

Origin www.cnblogs.com/mengff/p/12690893.html
Recomendado
Clasificación