Mark nodejs-server as deprecated (#3083)

* mark nodejs-server as deprecated

* update opeanpi3 script

* add new file
This commit is contained in:
William Cheng
2019-06-04 21:38:28 +08:00
committed by GitHub
parent 89d0c01764
commit c6207c0a49
15 changed files with 641 additions and 478 deletions

View File

@@ -1 +1 @@
3.0.0-SNAPSHOT
4.0.2-SNAPSHOT

View File

@@ -16,8 +16,8 @@ module.exports.addPet = function addPet (req, res, next) {
module.exports.deletePet = function deletePet (req, res, next) {
var petId = req.swagger.params['petId'].value;
var api_key = req.swagger.params['api_key'].value;
Pet.deletePet(petId,api_key)
var apiUnderscorekey = req.swagger.params['api_key'].value;
Pet.deletePet(petId,apiUnderscorekey)
.then(function (response) {
utils.writeJson(res, response);
})
@@ -39,7 +39,8 @@ module.exports.findPetsByStatus = function findPetsByStatus (req, res, next) {
module.exports.findPetsByTags = function findPetsByTags (req, res, next) {
var tags = req.swagger.params['tags'].value;
Pet.findPetsByTags(tags)
var maxCount = req.swagger.params['maxCount'].value;
Pet.findPetsByTags(tags,maxCount)
.then(function (response) {
utils.writeJson(res, response);
})

View File

@@ -18,10 +18,10 @@ exports.addPet = function(pet) {
* Deletes a pet
*
* petId Long Pet id to delete
* api_key String (optional)
* apiUnderscorekey String (optional)
* no response value expected for this operation
**/
exports.deletePet = function(petId,api_key) {
exports.deletePet = function(petId,apiUnderscorekey) {
return new Promise(function(resolve, reject) {
resolve();
});
@@ -69,9 +69,10 @@ exports.findPetsByStatus = function(status) {
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
*
* tags List Tags to filter by
* maxCount Integer Maximum number of items to return (optional)
* returns List
**/
exports.findPetsByTags = function(tags) {
exports.findPetsByTags = function(tags,maxCount) {
return new Promise(function(resolve, reject) {
var examples = {};
examples['application/json'] = {