Reputation: 9093
I am working on a django/python project. i want to create an api (webservices). What i want is to call a remote function from a python client. I was used to work with WSDL and WCF in ASP.Net. Is there something like this in django/python ? I started to work with djangorestframework but i do not think this is the right way. This framework allows me to put, read, insert or update objects in a database. I think REST is only dedicated to those operations. What i want is to call a remote function, without storing data on the server (this is just calculation).
Thanks
Upvotes: 0
Views: 207
Reputation: 2351
You don't have to strictly handle CRUD operations when using REST. In terms of technology, there's nothing stopping you from doing calculation with any method (GET, POST, PUT, DELETE, etc). In terms of methodology, you could do a calculation using a GET request since GET is used to retrieve information, which is exactly what you're doing. You don't necessarily have to handle resources.
If you still don't feel comfortable with REST, you can always switch back to SOAP and WSDL, there's a nice SOAP library for python soaplib
Upvotes: 1