Skip to content

Building Blog API using FastAPI - python framework. API design best practices, ensuring proper code readability and naming conventions.

Notifications You must be signed in to change notification settings

tushar-3549/Blog-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI - Swagger UI image

Postgres-Database Screenshot from 2024-12-19 11-12-31 Screenshot from 2024-12-19 11-12-55 Screenshot from 2024-12-19 11-13-04

Final API:

[
  {
    "Post": {
      "title": "PostgreSQL is Perfect for Modern Apps",
      "content": "PostgreSQL is a robust and open-source database system. Its advanced features like JSON support, performance optimization, and reliability make it ideal for complex applications.",
      "published": true,
      "id": 4,
      "created_at": "2024-12-19T10:44:06.441926+06:00",
      "author_id": 2,
      "author": {
        "id": 2,
        "email": "[email protected]",
        "created_at": "2024-12-19T10:31:04.576090+06:00"
      }
    },
    "rating": 0
  },
  {
    "Post": {
      "title": "FastAPI Application",
      "content": "FastAPI makes it easy to build APIs quickly and efficiently. Begin by installing it via pip, creating an app, and defining routes.",
      "published": true,
      "id": 2,
      "created_at": "2024-12-19T10:39:58.938381+06:00",
      "author_id": 1,
      "author": {
        "id": 1,
        "email": "[email protected]",
        "created_at": "2024-12-19T10:30:30.203443+06:00"
      }
    },
    "rating": 0
  },
  {
    "Post": {
      "title": "Backend Development",
      "content": "Backend development is the backbone of modern web applications. From managing databases to ensuring secure data exchange, backend engineers play a crucial role.",
      "published": true,
      "id": 3,
      "created_at": "2024-12-19T10:42:50.371564+06:00",
      "author_id": 2,
      "author": {
        "id": 2,
        "email": "[email protected]",
        "created_at": "2024-12-19T10:31:04.576090+06:00"
      }
    },
    "rating": 4
  },
  {
    "Post": {
      "title": "APIs in Today’s Technology",
      "content": "APIs are the glue that connects different systems and applications. They allow seamless data sharing and make integrations smoother. Learning how to create and consume APIs is essential for any developer today.",
      "published": false,
      "id": 5,
      "created_at": "2024-12-19T10:45:57.343305+06:00",
      "author_id": 3,
      "author": {
        "id": 3,
        "email": "[email protected]",
        "created_at": "2024-12-19T10:31:24.130843+06:00"
      }
    },
    "rating": 0
  },
  {
    "Post": {
      "title": "Programming Language",
      "content": "Programming is the art of turning ideas into functional solutions through code. It empowers us to automate tasks, solve problems, and build innovative technologies.",
      "published": true,
      "id": 1,
      "created_at": "2024-12-19T10:39:01.924716+06:00",
      "author_id": 1,
      "author": {
        "id": 1,
        "email": "[email protected]",
        "created_at": "2024-12-19T10:30:30.203443+06:00"
      }
    },
    "rating": 3.5
  }
]

About

Building Blog API using FastAPI - python framework. API design best practices, ensuring proper code readability and naming conventions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published