Skip to content

Commit

Permalink
https://github.com/water-fountains/datablue/issues/47
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Hauser committed Apr 2, 2020
1 parent eb2dc1c commit ab21aab
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ server/common/build.info.js
.env
.idea
/.project
/nbproject/private/
/nbproject/private/

.DS_Store
nbproject/*
server/.DS_Store
server/api/.DS_Store
5 changes: 5 additions & 0 deletions server/api/controllers/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ export class Controller {
l.info("controller.js: getLocationMetadata sent "+new Date().toISOString());
}

getSharedConstants(req, res) {
doJson(res,sharedConstants,'getSharedConstants'); //res.json(locations);
l.info("controller.js: getSharedConstants sent "+new Date().toISOString());
}

/**
* Function to extract processing errors from detailed list of fountains
*/
Expand Down
1 change: 1 addition & 0 deletions server/api/controllers/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export default express
.get('/fountains/', controller.byLocation)
.get('/metadata/fountain_properties/', controller.getPropertyMetadata)
.get('/metadata/locations/', controller.getLocationMetadata)
.get('/metadata/shared-constants/', controller.getSharedConstants)
.get('/processing-errors/', controller.getProcessingErrors)
7 changes: 7 additions & 0 deletions server/common/swagger/Api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ paths:
200:
description: Returns location metadata.

/metadata/shared-constants:
get:
description: "Fetch shared consants between Datablue and Proximap."
responses:
200:
description: Returns shared constants.

/fountain:
get:
description: Fetch detailed fountain information based on coordinates or identifier
Expand Down

0 comments on commit ab21aab

Please sign in to comment.