Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
APF-2667 Update Discovery Response
Browse files Browse the repository at this point in the history
Updated action label to specify local
Added mock config data
  • Loading branch information
Jonathan Fisher committed Nov 26, 2019
1 parent d58946a commit 36f752e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions samples/node/routes/discovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,35 @@ exports.root = function (req, res) {
},
user_input: [],
request: {},
label: 'Clear Reported Data',
label: {
'en-US': 'Clear Reported Data'
},
type: 'POST',
action_key: 'DIRECT'
}
},
object_types: {
card: {
doc: {href: "https://github.com/vmwaresamples/card-connectors-guide/wiki/Card-Responses"},
doc: {href: "https://github.com/vmware-samples/card-connectors-guide/wiki/Card-Responses"},
fields: {
zip: {capture_group: 1, regex: "([0-9]{5})(?:[- ][0-9]{4})?"}
},
pollable: true,
endpoint: {href: `${base}/cards/requests`}
}
},
// Logic for this config not implemented. Value is present to provide mock config data in discovery.
config: {
defaultZip: {
default: '30188',
type: 'String',
label: {
'en-US': 'Default Zip for requests that omit zip field'
},
description: {
'en-US': 'Default Zip that will be used for all requests which do not include a value for the zip field'
}
}
}
};
res.json(body);
Expand Down

0 comments on commit 36f752e

Please sign in to comment.