示例#1
0
    def put(self, token_id):
        """
        Parameter: token_id
        Request: SubmissionDesc
        Response: SubmissionDesc

        PUT finalize the submission
        """
        request = self.validate_message(self.request.body, requests.SubmissionDesc)

        submission = yield create_submission(token_id, request,
                                             get_tor2web_header(self.request.headers),
                                             self.request.language)
        self.set_status(202)  # Updated, also if submission if effectively created (201)
        self.finish(submission)
示例#2
0
    def put(self, token_id):
        """
        Parameter: token_id
        Request: SubmissionDesc
        Response: SubmissionDesc

        PUT finalize the submission
        """
        request = self.validate_message(self.request.body, requests.SubmissionDesc)

        status = yield create_submission(token_id, request,
                                         get_tor2web_header(self.request.headers),
                                         self.request.language)
        self.set_status(202)  # Updated, also if submission if effectively created (201)
        self.finish(status)