-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support the latest version 2.1.1 schema changes to the server side im…
…plementation
- Loading branch information
1 parent
1a539ba
commit a6f559b
Showing
6 changed files
with
5,628 additions
and
5,784 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
'use strict'; | ||
|
||
var utils = require('../utils/writer.js'); | ||
var IntegerProfile = require('../service/IntegerProfileService'); | ||
|
||
module.exports.getIntegerProfileIntegerName = function getIntegerProfileIntegerName (req, res, next, uuid) { | ||
IntegerProfile.getIntegerProfileIntegerName(uuid) | ||
.then(function (response) { | ||
utils.writeJson(res, response); | ||
}) | ||
.catch(function (response) { | ||
utils.writeJson(res, response); | ||
}); | ||
}; | ||
|
||
module.exports.getIntegerProfileIntegerValue = function getIntegerProfileIntegerValue (req, res, next, uuid) { | ||
IntegerProfile.getIntegerProfileIntegerValue(uuid) | ||
.then(function (response) { | ||
utils.writeJson(res, response); | ||
}) | ||
.catch(function (response) { | ||
utils.writeJson(res, response); | ||
}); | ||
}; | ||
|
||
module.exports.getIntegerProfileMaximum = function getIntegerProfileMaximum (req, res, next, uuid) { | ||
IntegerProfile.getIntegerProfileMaximum(uuid) | ||
.then(function (response) { | ||
utils.writeJson(res, response); | ||
}) | ||
.catch(function (response) { | ||
utils.writeJson(res, response); | ||
}); | ||
}; | ||
|
||
module.exports.getIntegerProfileMinimum = function getIntegerProfileMinimum (req, res, next, uuid) { | ||
IntegerProfile.getIntegerProfileMinimum(uuid) | ||
.then(function (response) { | ||
utils.writeJson(res, response); | ||
}) | ||
.catch(function (response) { | ||
utils.writeJson(res, response); | ||
}); | ||
}; | ||
|
||
module.exports.getIntegerProfilePurpose = function getIntegerProfilePurpose (req, res, next, uuid) { | ||
IntegerProfile.getIntegerProfilePurpose(uuid) | ||
.then(function (response) { | ||
utils.writeJson(res, response); | ||
}) | ||
.catch(function (response) { | ||
utils.writeJson(res, response); | ||
}); | ||
}; | ||
|
||
module.exports.getIntegerProfileUnit = function getIntegerProfileUnit (req, res, next, uuid) { | ||
IntegerProfile.getIntegerProfileUnit(uuid) | ||
.then(function (response) { | ||
utils.writeJson(res, response); | ||
}) | ||
.catch(function (response) { | ||
utils.writeJson(res, response); | ||
}); | ||
}; | ||
|
||
module.exports.putIntegerProfileIntegerValue = function putIntegerProfileIntegerValue (req, res, next, body, uuid) { | ||
IntegerProfile.putIntegerProfileIntegerValue(body, uuid) | ||
.then(function (response) { | ||
utils.writeJson(res, response); | ||
}) | ||
.catch(function (response) { | ||
utils.writeJson(res, response); | ||
}); | ||
}; |
Oops, something went wrong.