-
Notifications
You must be signed in to change notification settings - Fork 29
Configuration Backup
David Willson edited this page Jun 25, 2014
·
2 revisions
To export an existing configuration from Odo, simply gather the output from http://localhost:8090/testproxy/api/backup
while Odo is running.
Where backup.json
is the data gathered from http://localhost:8090/testproxy/api/backup
,
curl -X POST -F [email protected] http://localhost:8090/testproxy/api/backup
{
"groups": [
{
"name": "Group Name",
"methods": [
{
"className": "com.blah.blah",
"methodName": "doStuff"
},
{
"className": "com.blah.blah",
"methodName": "doStuff2"
}
]
}
],
"profiles": [
{
"name": "Stuff",
"paths": [
{
"pathName": "Name",
"path": "blah\?",
"groupNames": ["Group Name"],
"contentType": "JSON",
"requestType": 1,
"global": false
}
],
"servers": [
{
"source": "api.blah.com",
"destination": "blahblah.com"
}
]
}
]
}