blob: 9bf5f30c4e8dcba1851578c9b08bee64f03c3167 [file] [log] [blame]
{
"name": "resourceDictionary",
"connector": "rest",
"baseURL": "http://localhost:8080/api/v1/dictionary",
"crud": false,
"operations": [{
"template": {
"method": "GET",
"url": "http://localhost:8080/api/v1/dictionary/{name}",
"headers": {
"accepts": "application/json",
"content-type": "application/json",
"authorization": "{authtoken}"
},
"responsePath": "$.*"
},
"functions": {
"getByName": ["name", "authtoken"]
}
},
{
"template": {
"method": "GET",
"url": "http://localhost:8080/api/v1/dictionary/source-mapping",
"headers": {
"accepts": "application/json",
"content-type": "application/json",
"authorization": "{authtoken}"
},
"responsePath": "$.*"
},
"functions": {
"getSourceMapping": ["authtoken"]
}
},
{
"template": {
"method": "GET",
"url": "http://localhost:8080/api/v1/dictionary/search/{tags}",
"headers": {
"accepts": "application/json",
"content-type": "application/json",
"authorization": "{authtoken}"
},
"responsePath": "$.*"
},
"functions": {
"getByTags": ["tags", "authtoken"]
}
},
{
"template": {
"method": "POST",
"url": "http://localhost:8080/api/v1/dictionary",
"headers": {
"accepts": "application/json",
"content-type": "application/json",
"authorization": "{authtoken}"
},
"body": "{resourceDictionary}",
"responsePath": "$.*"
},
"functions": {
"save": ["authtoken", "resourceDictionary"]
}
},
{
"template": {
"method": "POST",
"url": "http://localhost:8080/api/v1/dictionary/by-names",
"headers": {
"accepts": "application/json",
"content-type": "application/json",
"authorization": "{authtoken}"
},
"body": "{resourceDictionaryList}",
"responsePath": "$.*"
},
"functions": {
"searchbyNames": ["authtoken", "resourceDictionaryList"]
}
}
]
}