DEV Community

Cover image for Creating a Quote API With Python and Flask
Dadda Hicham
Dadda Hicham

Posted on

4 2

Creating a Quote API With Python and Flask

Introduction

Hi Every body I just created a quote API With CRUD operations and I Want To share it with you if You Want to Use It To Learn Asynchronous Programming or any things I Already Live And You Can Access it from Here : QuoteApi

Features

  • Authentication System (unique Username And Email)
  • Add and Delete Quote
  • Authorization ( You Can't Delete Others Quotes)
  • End Point Support
  • Created Using Python and flask and MySQL as the Database
  • Use Environment Variables ### Project Repo :

Github Link

Use The API

  • Access All Quotes
https://quoteapibydaddasoft.herokuapp.com/api/quotes

Returned Data Structure :
"author": "",
"body": "",
"category": "",
"createdAt": "",
"id": "",
"updatedAt": ""
Enter fullscreen mode Exit fullscreen mode
  • Pagination ( with some Helpful information )
https://quoteapibydaddasoft.herokuapp.com/api/quotes?page=1
{
"data": [
{
"author": "",
"body": "",
"category": "",
"createdAt": "",
"id": "",
"updatedAt": ""
}],
"pagination": {
"currentPage": 1,
"nextpage": 2,
"pages": 8,
"prevPage": null
}
}
Enter fullscreen mode Exit fullscreen mode
  • Get a Random Quotes
https://quoteapibydaddasoft.herokuapp.com/api/quotes/random

{
"author": "",
"body": "",
"category": "",
"createdAt": "",
"id": "",
"updatedAt": ""
}
Enter fullscreen mode Exit fullscreen mode

Screenshot

Alt Text

Alt Text

Alt Text

Alt Text

SurveyJS custom survey software

JavaScript UI Library for Surveys and Forms

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

View demo

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Dive into this insightful write-up, celebrated within the collaborative DEV Community. Developers at any stage are invited to contribute and elevate our shared skills.

A simple "thank you" can boost someone’s spirits—leave your kudos in the comments!

On DEV, exchanging ideas fuels progress and deepens our connections. If this post helped you, a brief note of thanks goes a long way.

Okay