noticeable-api

noticeable-api

Usage no npm install needed!

<script type="module">
  import noticeableApi from 'https://cdn.skypack.dev/noticeable-api';
</script>

README

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'