This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Spring Service Configuration | |
# | |
server: | |
port: 8080 | |
# | |
# Microservice Service Registration | |
# | |
microservice: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"item": [ | |
{ | |
"uri": "bf5bc1ba-a1d7-4d29-9bfd-d66e54d6c214", | |
"type": "composite", | |
"profile": "collection", | |
"version": "1", | |
"firstcreated": "2017-04-12T11:37:09Z", | |
"versioncreated": "2017-04-12T11:37:09Z", | |
"pubstatus": "usable", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const config = require('konfig')({ path: 'config' }); | |
const util = require('util'); | |
const _ = require('lodash'); | |
const RequestServiceDiscovery = require('request-service-discovery'); | |
const QueryBuilder = require('elastibuild'); | |
const PubStatuses = require('../statics/pubstatuses'); | |
const Sorts = require('../statics/sorts'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const mocha = require('mocha'); | |
const chai = require('chai'); | |
const sinon = require('sinon'); | |
const expect = chai.expect; | |
const app = require('../../app'); | |
const express = require('express'); | |
const request = require('supertest'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const optional = require('optional'); | |
const ingestService = require('../services/ingest/image-metadata-ingest-service'); | |
const HTTP_ACCEPTED = 202; | |
const HTTP_BAD_REQUEST = 400; | |
/** | |
* Notify Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AMQPHutch = require('amqp-hutch'); | |
const log = require('../logger'); | |
const options = { | |
exchange: { | |
name: 'images-domain-v1-rabbitmq', | |
type: 'topic' | |
}, | |
queue: { | |
name: 'images.publish', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const chai = require('chai'); | |
const mocha = require('mocha'); | |
const should = chai.should(); | |
const sinon = require('sinon'); | |
const expect = chai.expect; | |
const ImageDomainExchangeNotificationConsumer | |
= require('../../lib/consumers/image-domain-exchange-notification-consumer'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
# | |
# Basic | |
# | |
server: | |
port: 8005 | |
# | |
# Microservice |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "content-ingest-image-metadata-v1", | |
"version": "0.0.1", | |
"description": "Ingestion service for ingesting image metadata posts (v1) into Content Pipeline", | |
"main": "app.js", | |
"scripts": { | |
"start": "node app.js", | |
"test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha" | |
}, | |
"repository": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const BodyHtmlConverter = require('../converters/body-html-converter'); | |
const decriptionConverter = require('../converters/description-html-converter'); | |
const objectArrayConverter = require('../converters/object-array-converter'); | |
const pubstatus = require('../constants/pub-statuses'); | |
const RenditionsConverter = require('../converters/renditions-converter'); | |
const subjectArrayConverter = require('../../lib/converters/subject-array-service-converter'); | |
const topicKeywordConverter = require('../../lib/converters/topic-keywords-converter'); | |
const types = require('../constants/types'); |
OlderNewer