question

Sumedh avatar image
Sumedh asked amichaels commented

how to introduce new method in REST calls

rest-call-methods.pngCurrently I see the methods supported are GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE.. whereas I need the method called PATCH. could anyone please tell me how to add the PATCH option to the method list?

iTestrestrest session profile
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

drakesh avatar image
drakesh answered drakesh edited

In current iTest versions we don't have "PATCH" option in Method. In-order to implement this option in iTest we need a check with our Produce Management team. Please send an email to support@spirent.com so that we will take care of it.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amichaels avatar image
amichaels answered amichaels commented

Those methods are HTTP verbs, and that list is limited by the HTTP spec. If you want to perform some custom function, you need to associate that with one of the existing verbs for the specific resource.

4 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sumedh avatar image Sumedh commented ·

could you please elaborate more on procedure to associate new one?

0 Likes 0 ·
amichaels avatar image amichaels ♦ Sumedh commented ·

That will depend on the web server or application framework you use. Most frameworks offer a mechanism to associate HTTP verb actions with functions that process those requests.

0 Likes 0 ·
Sumedh avatar image Sumedh amichaels ♦ commented ·

my application framework supports PATCH.

so can you tell me on how to get that PATCH method option into my iTest REST client?

0 Likes 0 ·
amichaels avatar image amichaels ♦ Sumedh commented ·

OK, you'll need to do as @drakesh suggests. Submit a request to support the PATCH HTTP verb.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.