Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13981

cherrypy - Not returning the Object in response

$
0
0

I've a class "TestMap" at the REST Service Side.

Rest Service is Exposed using cherrypy like below:

class TestApi(object):@serialize_contentdef GET(self):    pass@serialize_contentdef POST(self):   pass

When the client sends POST request/ GET request to API, API calls internally a method which sends the object of TestMap class.

But in response, I don't receive an object, I receive a dictionary out of it. Can you please help me to return an object.

And that Object is needed as we need to call different methods on that object.

Thanks


Viewing all articles
Browse latest Browse all 13981

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>