Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use patch method in server request #2138

Open
NadeemKhanFh opened this issue Sep 8, 2024 · 1 comment
Open

how to use patch method in server request #2138

NadeemKhanFh opened this issue Sep 8, 2024 · 1 comment

Comments

@NadeemKhanFh
Copy link

Hello

url: "http://my.server.com",
params: {
"user_id": 123
},
headers: {
"my-auth-token":"secret-key"
}

i have a rest api to update rider location

const updateRiderInfo = ({body}: {body: any}) => {
return new Promise((resolve, reject) => {
NetWorkService.Patch({
url: riders/updateByRider,
body: body,
})
.then((res) => resolve(res))
.catch((error) => reject(error));
});
};

is there any so that i can set Patch method and body:{lat:0, long:0} in the config?

@christocracy
Copy link
Member

See the api docs Config to see all the options available to you beginning with the word “http”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants