contiamo / restful-react

A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥
MIT License
1.87k stars 109 forks source link

How do i make a PUT or POST mutation? #326

Open mclarck opened 3 years ago

mclarck commented 3 years ago

I guys thank u for creating this awesome library. I'd like to know how to make a POST request or a PUT... something like: `PUT /api/posts/1 HTTP/1.1 Content-Type: application/json

{ "status": "published" }`

fabien0102 commented 3 years ago

useMutate is what you are searching, I let you search a the readme.md

mclarck commented 3 years ago

I already found it, thank you.