Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
782 B
1
Indexable
Never
 def venue_post(self):
        parser = reqparse.RequestParser()
        parser.add_argument(
            'name',
            type = str,
            required = True,
            help = 'An invalid name was provided.',
            location = 'form'
        )
        parser.add_argument(
            'struct_group',
            type = str,
            required = True,
            help = 'An invalid group structure was provided.',
            location = 'form'
        )
        parser.add_argument(
            'location_id',
            type = int,
            required = True,
            help = 'An invalid location ID was provided.',
            location = 'form'
        )

        return parser.parse_args()

 def post(self):

        self.params = DataModels().venue_post()