noms-digital-studio/hub-content-feed

Name: hub-content-feed

Owner: NOMS Digital Studio

Description: null

Created: 2016-12-22 13:28:14.0

Updated: 2017-09-06 14:10:38.0

Pushed: 2017-03-02 14:10:07.0

Homepage: null

Size: 158

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

hub-content-feed

REST microservice for the The Hub.

This service is responsible for content metadata delivery to the consumers.

Ministry of Justice. National Offender Management Service.

Build
adlew clean build
Run
adlew bootRun
Get Content Item for a given ID endpoint

GET /hub-content-feed/content-items/ Retrieve a ContentItem for a given ID which is currently made up of just a title and a media uri.

Examples

Request:

onse:

Status: 200 { “title”: “hub-feature-specs:Upload Course Prospectus”, “uri”: “http:///content-items/hub-feature-specs-test-prospectus1.pdf”, “id”: “589c25c1d12d27267cc7b94a” }

Content Item endpoint

/hub-content-feed/content-items 
ieve a single ContentItem which is currently made up of just a title and media uri.

ples

est:

Response:

us: 200


ontentItems": [
{
  "title": "hub-feature-specs:Upload Course Prospectus",
  "uri": "http://<host>/content-items/hub-feature-specs-test-prospectus1.pdf",
  "id": "589c25c1d12d27267cc7b94a"
}


Monitoring endpoint

GET /hub-content-feed/health

e.g.

://localhost:8080/hub-content-feed/health
://hub-content-feed.herokuapp.com/hub-content-feed/health
Environment variable required by the application
ontentfeed.mongodb.connectionurl - The MongoDb connection string. Defaults to mongodb://localhost:27017
 mongodb:foo:<key>==@bar.documents.azure.com:10250/?ssl=true

ontentfeed.mongodb.database - The MongoDb connection database name.
Environment variable required by the functional tests
oyedURL - The hostname that the application is running on. Defaults to 'localhost'
 hub-content_feed.herokuapp.com
oDbURL - The mongo database url for the application. Defaults to mongodb://localhost:27017
 mongodb:<user>:<key>==@bar.documents.azure.com:10250/?ssl=true

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.