{"action":"closed","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-proto-datastore/issues/123","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-proto-datastore/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-proto-datastore/issues/123/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/endpoints-proto-datastore/issues/123/events","html_url":"https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/issues/123","id":55901227,"number":123,"title":"Can't return different class than the annotated one.","user":{"login":"matantsu","id":8289005,"avatar_url":"https://avatars.githubusercontent.com/u/8289005?v=3","gravatar_id":"","url":"https://api.github.com/users/matantsu","html_url":"https://github.com/matantsu","followers_url":"https://api.github.com/users/matantsu/followers","following_url":"https://api.github.com/users/matantsu/following{/other_user}","gists_url":"https://api.github.com/users/matantsu/gists{/gist_id}","starred_url":"https://api.github.com/users/matantsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matantsu/subscriptions","organizations_url":"https://api.github.com/users/matantsu/orgs","repos_url":"https://api.github.com/users/matantsu/repos","events_url":"https://api.github.com/users/matantsu/events{/privacy}","received_events_url":"https://api.github.com/users/matantsu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-29T13:53:32Z","updated_at":"2015-01-29T14:05:14Z","closed_at":"2015-01-29T14:05:14Z","body":"I would like to have a method that receives one type of object and returns another type.\r\nfor example:\r\n```\r\nclass SomeClass(EndpointsModel):\r\n    name = ndb.StringProperty()\r\n\r\nclass OtherClass(EndpointsModel):\r\n    otherName = ndb.StringProperty()\r\n\r\n@SomeClass.method(path='mymodel', http_method='POST', name='mymodel.insert')\r\n    def MyModelInsert(self, my_model):\r\n        my_model.put()\r\n        otherModel = OtherClass(otherName='someothername')\r\n        return otherModel\r\n```\r\n\r\nI'm getting:\r\n`ServerError (Method MyApi.MyModelInsert expected response type <class '.SomeClass'>, sent <class '.OtherClass'>)`\r\n\r\nIs this a problem with the library , or is this feature just not available ?\r\n"}}