From ca76a8e6bedd75622a086dc82138ca7728a68775 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Mon, 14 May 2018 12:54:53 -0500 Subject: [PATCH] Update links, add patreon badge --- README.md | 22 ++++++++++------------ app.json | 4 ++-- docker/Dockerfile | 2 +- postgrest.cabal | 4 ++-- src/PostgREST/OpenAPI.hs | 2 +- test/Feature/StructureSpec.hs | 4 ++-- 6 files changed, 18 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 919e20f14..9652774cf 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ ![Logo](static/logo.png "Logo") -[![Build Status](https://circleci.com/gh/begriffs/postgrest.png?style=shield&circle-token=f723c01686abf0364de1e2eaae5aff1f68bd3ff2)](https://circleci.com/gh/begriffs/postgrest/tree/master) - +[![Build Status](https://circleci.com/gh/PostgREST/postgrest/tree/master.svg?style=shield)](https://circleci.com/gh/PostgREST/postgrest/tree/master) + Deploy [![Join the chat at https://gitter.im/begriffs/postgrest](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/begriffs/postgrest) -[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://postgrest.com) +[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://postgrest.org) [![Docker Stars](https://img.shields.io/docker/pulls/postgrest/postgrest.svg)](https://hub.docker.com/r/postgrest/postgrest/) +[![Donate](https://img.shields.io/badge/patreon-donate-orange.svg?colorB=F96854)](https://www.patreon.com/postgrest) PostgREST serves a fully RESTful API from any existing PostgreSQL database. It provides a cleaner, more standards-compliant, faster @@ -14,7 +15,7 @@ API than you are likely to write from scratch. ### 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. 2. Invoke for help: @@ -50,13 +51,10 @@ by * Using the PostgreSQL binary protocol * Being stateless to allow horizontal scaling -Other optimizations are possible, and some are outlined in the -[Future Features](#future-features). - ### Security 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 the database. This ensures there is a single declarative source of truth 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 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 -I'm grateful to the generous project -[contributors](https://github.com/begriffs/postgrest/graphs/contributors) +The PostgREST organization is grateful to the generous project +[contributors](https://github.com/PostgREST/postgrest/graphs/contributors) who have improved PostgREST immensely with their code and good 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). diff --git a/app.json b/app.json index e6745ff1a..4a2a2d7ae 100644 --- a/app.json +++ b/app.json @@ -2,11 +2,11 @@ "name": "PostgREST", "description": "RESTful API for any PostgreSQL database.", "logo": "https://halcyon.sh/logo.svg", - "repository": "https://github.com/begriffs/postgrest", + "repository": "https://github.com/PostgREST/postgrest", "env": { "BUILDPACK_URL": { "description": "Heroku buildpack for deploying Haskell applications", - "value": "https://github.com/begriffs/postgrest-heroku" + "value": "https://github.com/PostgREST/postgrest-heroku" }, "POSTGREST_VER": { "description": "Version of PostgREST to deploy", diff --git a/docker/Dockerfile b/docker/Dockerfile index 2f93e7a1f..96c243cc4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,7 +13,7 @@ RUN BUILD_DEPS="curl ca-certificates xz-utils" && \ apt-get -qq update && \ apt-get -qq install -y --no-install-recommends $BUILD_DEPS && \ 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 && \ mv postgrest /usr/local/bin/postgrest && \ cd / && \ diff --git a/postgrest.cabal b/postgrest.cabal index ee9caee6f..c3f8d0d0d 100644 --- a/postgrest.cabal +++ b/postgrest.cabal @@ -7,14 +7,14 @@ synopsis: REST API for any Postgres database license: MIT license-file: LICENSE author: Joe Nelson, Adam Baker -homepage: https://github.com/begriffs/postgrest +homepage: https://github.com/PostgREST/postgrest maintainer: cred+github@begriffs.com category: Web build-type: Simple cabal-version: >=1.10 source-repository head type: git - location: git://github.com/begriffs/postgrest.git + location: git://github.com/PostgREST/postgrest.git Flag CI Description: No warnings allowed in continuous integration diff --git a/src/PostgREST/OpenAPI.hs b/src/PostgREST/OpenAPI.hs index 0aae4f6ec..865b7da3a 100644 --- a/src/PostgREST/OpenAPI.hs +++ b/src/PostgREST/OpenAPI.hs @@ -260,7 +260,7 @@ postgrestSpec pds ti (s, h, p, b) sd pks = (mempty :: Swagger) & description ?~ d) & externalDocs ?~ ((mempty :: ExternalDocs) & description ?~ "PostgREST Documentation" - & url .~ URL ("https://postgrest.com/en/" <> docsVersion <> "/api.html")) + & url .~ URL ("https://postgrest.org/en/" <> docsVersion <> "/api.html")) & host .~ h' & definitions .~ fromList (map (makeTableDef pks) ti) & parameters .~ fromList (makeParamDefs ti) diff --git a/test/Feature/StructureSpec.hs b/test/Feature/StructureSpec.hs index 45e4077f5..a8c472148 100644 --- a/test/Feature/StructureSpec.hs +++ b/test/Feature/StructureSpec.hs @@ -29,12 +29,12 @@ spec = do (acceptHdrs "application/openapi+json") "" `shouldRespondWith` 415 - it "includes postgrest.com current version api docs" $ do + it "includes postgrest.org current version api docs" $ do r <- simpleBody <$> get "/" 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