<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-api-database-architecture---stop-writing-http-get-endpoints-qcttl6bg6" -->

---
title: The API database architecture - Stop writing HTTP-GET...
description: The API database architecture eliminates the need for writing HTTP-GET endpoints by using PostgREST as a server to connect to a PostgreSQL database. It...
canonical: https://daily.dev/posts/the-api-database-architecture---stop-writing-http-get-endpoints-qcttl6bg6
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The API database architecture - Stop writing HTTP-GET endpoints | daily.dev
og:description: The API database architecture eliminates the need for writing HTTP-GET endpoints by using PostgREST as a server to connect to a PostgreSQL database. It...
og:url: https://daily.dev/posts/the-api-database-architecture---stop-writing-http-get-endpoints-qcttl6bg6
og:image: https://api.daily.dev/og/posts/QcTtL6bG6.png
og:image:alt: The API database architecture - Stop writing HTTP-GET endpoints
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The API database architecture - Stop writing HTTP-GET endpoints

**[Community Picks](https://daily.dev/sources/community)** · 8 min read · 32 upvotes · 1 comments

## Summary

The API database architecture eliminates the need for writing HTTP-GET endpoints by using PostgREST as a server to connect to a PostgreSQL database. It supports filtering, sorting, paging, and authentication out of the box.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.fabianzeindl.com/posts/the-api-database-architecture>

## Community discussion

Top comments from developers on daily.dev.

**@hantian\_pang** · 0 upvotes

> PostgREST is really cool, I think it's easier to use than graphql

---

Tags: [#postgresql](https://daily.dev/tags/postgresql), [#rest-api](https://daily.dev/tags/rest-api)

[View this post on daily.dev](https://daily.dev/posts/the-api-database-architecture---stop-writing-http-get-endpoints-qcttl6bg6)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The API database architecture - Stop writing HTTP-GET endpoints","url":"https://daily.dev/posts/the-api-database-architecture---stop-writing-http-get-endpoints-qcttl6bg6","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-api-database-architecture---stop-writing-http-get-endpoints-qcttl6bg6"},"datePublished":"2024-05-13T11:21:17.151Z","dateModified":"2024-05-13T11:21:16.465Z","description":"The API database architecture eliminates the need for writing HTTP-GET endpoints by using PostgREST as a server to connect to a PostgreSQL database. It...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc2e8736bd79601392158ecbe053eb98?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc2e8736bd79601392158ecbe053eb98?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/the-api-database-architecture---stop-writing-http-get-endpoints-qcttl6bg6","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":32},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"postgresql,rest-api","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"The API database architecture - Stop writing HTTP-GET endpoints"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/the-api-database-architecture---stop-writing-http-get-endpoints-qcttl6bg6","comment":[{"@type":"Comment","text":"PostgREST is really cool, I think it’s easier to use than graphql","datePublished":"2024-05-15T02:13:16.216Z","url":"https://daily.dev/posts/QcTtL6bG6#c-f31GBg8fs","author":{"@type":"Person","name":"hantian pang","url":"https://daily.dev/hantian_pang","image":"https://avatars.githubusercontent.com/u/6350479?v=4"}}]}
```

