Update links, add patreon badge
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||

|

|
||||||
|
|
||||||
[](https://circleci.com/gh/begriffs/postgrest/tree/master)
|
[](https://circleci.com/gh/PostgREST/postgrest/tree/master)
|
||||||
<a href="https://heroku.com/deploy?template=https://github.com/begriffs/postgrest">
|
<a href="https://heroku.com/deploy?template=https://github.com/PostgREST/postgrest">
|
||||||
<img src="https://img.shields.io/badge/%E2%86%91_Deploy_to-Heroku-7056bf.svg" alt="Deploy">
|
<img src="https://img.shields.io/badge/%E2%86%91_Deploy_to-Heroku-7056bf.svg" alt="Deploy">
|
||||||
</a>
|
</a>
|
||||||
[](https://gitter.im/begriffs/postgrest)
|
[](https://gitter.im/begriffs/postgrest)
|
||||||
[](http://postgrest.com)
|
[](http://postgrest.org)
|
||||||
[](https://hub.docker.com/r/postgrest/postgrest/)
|
[](https://hub.docker.com/r/postgrest/postgrest/)
|
||||||
|
[](https://www.patreon.com/postgrest)
|
||||||
|
|
||||||
PostgREST serves a fully RESTful API from any existing PostgreSQL
|
PostgREST serves a fully RESTful API from any existing PostgreSQL
|
||||||
database. It provides a cleaner, more standards-compliant, faster
|
database. It provides a cleaner, more standards-compliant, faster
|
||||||
@@ -14,7 +15,7 @@ API than you are likely to write from scratch.
|
|||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
1. Download the binary ([latest release](https://github.com/begriffs/postgrest/releases/latest))
|
1. Download the binary ([latest release](https://github.com/PostgREST/postgrest/releases/latest))
|
||||||
for your platform.
|
for your platform.
|
||||||
2. Invoke for help:
|
2. Invoke for help:
|
||||||
|
|
||||||
@@ -50,13 +51,10 @@ by
|
|||||||
* Using the PostgreSQL binary protocol
|
* Using the PostgreSQL binary protocol
|
||||||
* Being stateless to allow horizontal scaling
|
* Being stateless to allow horizontal scaling
|
||||||
|
|
||||||
Other optimizations are possible, and some are outlined in the
|
|
||||||
[Future Features](#future-features).
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
PostgREST [handles
|
PostgREST [handles
|
||||||
authentication](http://postgrest.com/en/stable/auth.html) (via JSON Web
|
authentication](http://postgrest.org/en/stable/auth.html) (via JSON Web
|
||||||
Tokens) and delegates authorization to the role information defined in
|
Tokens) and delegates authorization to the role information defined in
|
||||||
the database. This ensures there is a single declarative source of truth
|
the database. This ensures there is a single declarative source of truth
|
||||||
for security. When dealing with the database the server assumes the
|
for security. When dealing with the database the server assumes the
|
||||||
@@ -106,14 +104,14 @@ surprises, such as enforcing idempotent PUT requests.
|
|||||||
|
|
||||||
See examples of [PostgreSQL
|
See examples of [PostgreSQL
|
||||||
constraints](http://www.tutorialspoint.com/postgresql/postgresql_constraints.htm)
|
constraints](http://www.tutorialspoint.com/postgresql/postgresql_constraints.htm)
|
||||||
and the [API guide](http://postgrest.com/en/stable/api.html).
|
and the [API guide](http://postgrest.org/en/stable/api.html).
|
||||||
|
|
||||||
### Thanks
|
### Thanks
|
||||||
|
|
||||||
I'm grateful to the generous project
|
The PostgREST organization is grateful to the generous project
|
||||||
[contributors](https://github.com/begriffs/postgrest/graphs/contributors)
|
[contributors](https://github.com/PostgREST/postgrest/graphs/contributors)
|
||||||
who have improved PostgREST immensely with their code and good
|
who have improved PostgREST immensely with their code and good
|
||||||
judgement. See more details in the
|
judgement. See more details in the
|
||||||
[changelog](https://github.com/begriffs/postgrest/blob/master/CHANGELOG.md).
|
[changelog](https://github.com/PostgREST/postgrest/blob/master/CHANGELOG.md).
|
||||||
|
|
||||||
The cool logo came from [Mikey Casalaina](https://github.com/casalaina).
|
The cool logo came from [Mikey Casalaina](https://github.com/casalaina).
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
"name": "PostgREST",
|
"name": "PostgREST",
|
||||||
"description": "RESTful API for any PostgreSQL database.",
|
"description": "RESTful API for any PostgreSQL database.",
|
||||||
"logo": "https://halcyon.sh/logo.svg",
|
"logo": "https://halcyon.sh/logo.svg",
|
||||||
"repository": "https://github.com/begriffs/postgrest",
|
"repository": "https://github.com/PostgREST/postgrest",
|
||||||
"env": {
|
"env": {
|
||||||
"BUILDPACK_URL": {
|
"BUILDPACK_URL": {
|
||||||
"description": "Heroku buildpack for deploying Haskell applications",
|
"description": "Heroku buildpack for deploying Haskell applications",
|
||||||
"value": "https://github.com/begriffs/postgrest-heroku"
|
"value": "https://github.com/PostgREST/postgrest-heroku"
|
||||||
},
|
},
|
||||||
"POSTGREST_VER": {
|
"POSTGREST_VER": {
|
||||||
"description": "Version of PostgREST to deploy",
|
"description": "Version of PostgREST to deploy",
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ RUN BUILD_DEPS="curl ca-certificates xz-utils" && \
|
|||||||
apt-get -qq update && \
|
apt-get -qq update && \
|
||||||
apt-get -qq install -y --no-install-recommends $BUILD_DEPS && \
|
apt-get -qq install -y --no-install-recommends $BUILD_DEPS && \
|
||||||
cd /tmp && \
|
cd /tmp && \
|
||||||
curl -SLO https://github.com/begriffs/postgrest/releases/download/${POSTGREST_VERSION}/postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz && \
|
curl -SLO https://github.com/PostgREST/postgrest/releases/download/${POSTGREST_VERSION}/postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz && \
|
||||||
tar -xJvf postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz && \
|
tar -xJvf postgrest-${POSTGREST_VERSION}-ubuntu.tar.xz && \
|
||||||
mv postgrest /usr/local/bin/postgrest && \
|
mv postgrest /usr/local/bin/postgrest && \
|
||||||
cd / && \
|
cd / && \
|
||||||
|
|||||||
+2
-2
@@ -7,14 +7,14 @@ synopsis: REST API for any Postgres database
|
|||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Joe Nelson, Adam Baker
|
author: Joe Nelson, Adam Baker
|
||||||
homepage: https://github.com/begriffs/postgrest
|
homepage: https://github.com/PostgREST/postgrest
|
||||||
maintainer: cred+github@begriffs.com
|
maintainer: cred+github@begriffs.com
|
||||||
category: Web
|
category: Web
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: git://github.com/begriffs/postgrest.git
|
location: git://github.com/PostgREST/postgrest.git
|
||||||
|
|
||||||
Flag CI
|
Flag CI
|
||||||
Description: No warnings allowed in continuous integration
|
Description: No warnings allowed in continuous integration
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ postgrestSpec pds ti (s, h, p, b) sd pks = (mempty :: Swagger)
|
|||||||
& description ?~ d)
|
& description ?~ d)
|
||||||
& externalDocs ?~ ((mempty :: ExternalDocs)
|
& externalDocs ?~ ((mempty :: ExternalDocs)
|
||||||
& description ?~ "PostgREST Documentation"
|
& description ?~ "PostgREST Documentation"
|
||||||
& url .~ URL ("https://postgrest.com/en/" <> docsVersion <> "/api.html"))
|
& url .~ URL ("https://postgrest.org/en/" <> docsVersion <> "/api.html"))
|
||||||
& host .~ h'
|
& host .~ h'
|
||||||
& definitions .~ fromList (map (makeTableDef pks) ti)
|
& definitions .~ fromList (map (makeTableDef pks) ti)
|
||||||
& parameters .~ fromList (makeParamDefs ti)
|
& parameters .~ fromList (makeParamDefs ti)
|
||||||
|
|||||||
@@ -29,12 +29,12 @@ spec = do
|
|||||||
(acceptHdrs "application/openapi+json") ""
|
(acceptHdrs "application/openapi+json") ""
|
||||||
`shouldRespondWith` 415
|
`shouldRespondWith` 415
|
||||||
|
|
||||||
it "includes postgrest.com current version api docs" $ do
|
it "includes postgrest.org current version api docs" $ do
|
||||||
r <- simpleBody <$> get "/"
|
r <- simpleBody <$> get "/"
|
||||||
|
|
||||||
let docsUrl = r ^? key "externalDocs" . key "url"
|
let docsUrl = r ^? key "externalDocs" . key "url"
|
||||||
|
|
||||||
liftIO $ docsUrl `shouldBe` Just (String ("https://postgrest.com/en/" <> docsVersion <> "/api.html"))
|
liftIO $ docsUrl `shouldBe` Just (String ("https://postgrest.org/en/" <> docsVersion <> "/api.html"))
|
||||||
|
|
||||||
describe "table" $ do
|
describe "table" $ do
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user