Exemple #1
0
 def delete(self, request, code):
     return _base_request(request=request,
                          request_schema=DeleteStoryRequestSchema(),
                          response_schema=DeleteStoryResponseSchema(),
                          method=StoryServiceAgent.delete_story,
                          code=code,
                          code_name=STORY_ID)
Exemple #2
0
 def delete(self, request, code):
     return _base_request(request=request,
                          request_schema=DeleteCategoryRequestSchema(),
                          response_schema=DeleteCategoryResponseSchema(),
                          method=CategoryServiceAgent.delete_category,
                          code_name=CATEGORY_ID,
                          code=code)
Exemple #3
0
 def put(self, request, code):
     return _base_request(request=request,
                          request_schema=PutCategoryRequestSchema(),
                          response_schema=PutCategoryResponseSchema(),
                          method=CategoryServiceAgent.put_category,
                          code_name=CATEGORY_ID,
                          code=code)
Exemple #4
0
 def post(self, request):
     return _base_request(request=request,
                          request_schema=PostStoryRequestSchema(),
                          response_schema=PostStoryResponseSchema(),
                          method=StoryServiceAgent.post_story)
Exemple #5
0
 def get(self, request):
     return _base_request(request=request,
                          request_schema=GetStoryRequestSchema(),
                          response_schema=GetStoryResponseSchema(),
                          method=StoryServiceAgent.get_story,
                          is_paging=True)