2.1.0 • Published 6 years ago

noticeable-api v2.1.0

Weekly downloads
6
License
UNLICENSED
Repository
github
Last release
6 years ago

noticeable-api

This repository contains the source code of the API for noticeable.io.

Usage

$ yarn install
$ yarn deploy

Testing

yarn package:functions && firebase serve --only functions

HTTPie query example:

$ http https://api.noticeable.io/graphql query=='{ viewer { id } }' Authorization:'Apikey tfFSsCmhdcLohvcLlRNk'
$ http https://api.noticeable.io/graphql query=='{ viewer { id projects(first: 10) { pageInfo { hasPreviousPage hasNextPage } edges { node { name url } } } } }' Authorization:'Apikey tfFSsCmhdcLohvcLlRNk'
$ http https://api.noticeable.io/graphql query=='{ viewer { id projects(first: 10) { pageInfo { hasPreviousPage hasNextPage } edges { node { name url posts(last: 10) { edges { node { id title publicationTime  } } } } } } } }' Authorization:'Apikey tfFSsCmhdcLohvcLlRNk'

$ http -f POST https://api.noticeable.io/graphql query='{ viewer { id } }' Authorization:'Apikey tfFSsCmhdcLohvcLlRNk'