LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
carlod80

Allow multiple HTTP methods for a single Web Resource

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

As far as I understand the philosophy of RESTful services, one should also be able to address the same web resource with different methods, e.g. GET and PUT.

 

As a practical example, suppose I'm creating a REST API for controlling a data acquisition board, and I implement a method such as:

http://.../acquisition_board/sampling_rate

Here it would be desirable to use the GET and PUT methods on this very same resource, in order to retrieve the sampling rate (GET) and set the sampling rate (PUT).

 

At the moment, LabVIEW WebServices only allow to set a unique method for each resource, whereas it would be useful to allow multiple methods on the same resource, as shown in the example above.

2 Comments
carlod80
Member

I just realized that this can be probably accomplished by manually tuning the URL mappings of the methods. Now testing, I'll post back if it works.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.