Anil Sagar
Posts: 0
Joined: Fri Jul 04, 2014 1:13 pm

No resource method found for PATCH - while array update

I am trying to use 'patch' method for array update. Although the service test works fine for 'put' method, using patch gives the following error -

{
"status":"405 Method Not Allowed",
"url":"https://api.appery.io/rest/1/db/colle...",
"response":{
"code":"BCXX004",
"description":"No resource method found for PATCH, return 405 with Allow header"
}
}

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

No resource method found for PATCH - while array update

Hi Anil,

Do you get this error in service test or in a ready application?
Could you please post screenshots of service settings and test tab with the error?

Anil Sagar
Posts: 0
Joined: Fri Jul 04, 2014 1:13 pm

No resource method found for PATCH - while array update

Hi Katya, I am doing this in service test first. Screen shots are attached.

Image

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

No resource method found for PATCH - while array update

Hello Anil,

You should use method "put" to update data in the database: http://devcenter.appery.io/documentat...

Anil Sagar
Posts: 0
Joined: Fri Jul 04, 2014 1:13 pm

No resource method found for PATCH - while array update

Put is not the most efficient method as it uploads the whole array back again into the DB. Incremental update like patch should be preferred. But if patch is not working fine then there is little choice.

I have raised another query regarding how to capture the whole DB array into local storage. Have not been able to do that yet. Once that is possible than I can push additional records locally and then update back the array into DB using put. Pls help on the other query then.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

No resource method found for PATCH - while array update

Anil,

in this case, you should either locally modify the data and record it in the database, or by using servercode

Return to “Issues”