Questions tagged [flask-apispec]

19 questions
0
votes
1 answer

Passing docstring of a function to another file python3

I'm using apispec in order to generate openapi specification (swagger) to be used for further utilization in AWS. I was trying to optimize my current file by creating another file that contains functions with docstrings related to the routes…
Ouma
  • 598
  • 1
  • 4
  • 15
0
votes
2 answers

flask-api-spec tags for grouping methods in swagger

I try to group my app-services in swagger. In my project, I use FlaskApiSpec to generate Swagger documentation for my Python-Flask application. There is a part of code, how I generate swagger docs for my app, using Flask Blueprint…
Anvar
  • 11
  • 4
0
votes
1 answer

I can't implement API in flask token based authorization 2.o

Need help to implement token based authorization steps and solution. I am using flask as back-end and html and CSS front-end. But i am facing difficulty to find best content about api. my purpose is to build user login and registrations This is my…
-3
votes
1 answer

I am trying to query the database for id before deleting using recipe_id - flask peewee

I have this API that deletes a recipe using recipe_id that belongs to a user_id. I am trying to create a query before the delete function. I want the app to check if ID exists first, if it's not, flash an error and if it is there, delete the recipe.…
icanbe444
  • 11
  • 3
1
2