Gambit Content fetches data from Phoenix and Contentful to provide a Content API for use by Gambit Conversations.
All endpoints require either a valid x-gambit-api-key
header or apiKey
query parameter.
Endpoint | Functionality |
---|---|
GET /v1/broadcasts |
Retrieve broadcasts |
GET /v1/broadcasts/:id |
Retrieve a broadcast |
GET /v1/campaigns/:id |
Retrieve a campaign |
GET /v1/contentfulEntries/ |
Retrieve Contentful entries |
GET /v1/contentfulEntries/:id |
Retrieve a Contentful entry |
GET /v1/defaultTopicTriggers |
Retrieve all additional default topic triggers |
GET /v1/topics/:id |
Retrieve a topic |
Gambit Content is built using Express and Redis.
.env
file with required variables. See .env.example
.redis-cli ping
. You should get PONG
as a response.brew
and started the service.npm install
npm start
Contributions to this repo must adhere to the steps in wunder.io's Git workflow: Wunderflow.
Run npm all-tests
to lint code and run automated tests.
©2018 DoSomething.org. Gambit Content is free software, and may be redistributed under the terms specified in the LICENSE file. The name and logo for DoSomething.org are trademarks of Do Something, Inc and may not be used without permission.