-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from marklogic-community/develop
Release 1.1.1
- Loading branch information
Showing
39 changed files
with
912 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mlAppName=geo-data-services | ||
version=1.1.0 | ||
version=1.1.1 | ||
|
||
mlHost=localhost | ||
mlRestPort=8095 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use strict'; | ||
|
||
function getServiceModel(serviceName) { | ||
xdmp.trace("KOOP-DEBUG", "Starting getServiceModel"); | ||
// TODO: These should be cached | ||
|
||
const collection = "http://marklogic.com/feature-services"; | ||
|
||
xdmp.trace("KOOP-DEBUG", "Searching for Service Model: " + serviceName); | ||
let model = fn.head( | ||
cts.search(cts.andQuery([ | ||
cts.collectionQuery(collection), | ||
cts.jsonPropertyValueQuery("name", serviceName, ["exact"]) | ||
])) | ||
); | ||
|
||
if (model) { | ||
xdmp.trace("KOOP-DEBUG", "Found service: " + serviceName); | ||
return model.toObject(); | ||
} else { | ||
xdmp.trace("KOOP-DEBUG", "No service info found for: " + serviceName); | ||
throw "No service info found for: " + serviceName; | ||
} | ||
} | ||
|
||
exports.getServiceModel = getServiceModel; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.