Merge pull request #1218 from wazuh/issue-1217

Update API request list model
This commit is contained in:
Jesús Ángel 2019-02-13 14:51:20 +01:00 committed by GitHub
commit 04d3ec3d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,22 @@ export const apiRequestList = [
name: '/agents/restart',
args: []
},
{
name: '/cluster/:node_id/restart',
args: [
{
name: ':node_id'
}
]
},
{
name: '/cluster/restart',
args: []
},
{
name: '/manager/restart',
args: []
},
{
name: '/rootcheck',
args: []
@ -136,6 +152,14 @@ export const apiRequestList = [
}
]
},
{
name: '/agents/group/:group_id',
args: [
{
name: ':group_id'
}
]
},
{
name: '/agents/groups',
args: []
@ -322,6 +346,22 @@ export const apiRequestList = [
}
]
},
{
name: '/cluster/:node_id/configuration/validation',
args: [
{
name: ':node_id'
}
]
},
{
name: '/cluster/:node_id/files',
args: [
{
name: ':node_id'
}
]
},
{
name: '/cluster/:node_id/info',
args: [
@ -354,6 +394,14 @@ export const apiRequestList = [
}
]
},
{
name: '/cluster/:node_id/stats/analysisd',
args: [
{
name: ':node_id'
}
]
},
{
name: '/cluster/:node_id/stats/hourly',
args: [
@ -362,6 +410,14 @@ export const apiRequestList = [
}
]
},
{
name: '/cluster/:node_id/stats/remoted',
args: [
{
name: ':node_id'
}
]
},
{
name: '/cluster/:node_id/stats/weekly',
args: [
@ -382,6 +438,10 @@ export const apiRequestList = [
name: '/cluster/config',
args: []
},
{
name: '/cluster/configuration/validation',
args: []
},
{
name: '/cluster/healthcheck',
args: []
@ -406,6 +466,29 @@ export const apiRequestList = [
name: '/cluster/status',
args: []
},
{
name: '/manager/stats/remoted',
args: []
},
{
name: '/configuration_assessment/:agent_id',
args: [
{
name: ':agent_id'
}
]
},
{
name: '/configuration_assessment/:agent_id/checks/:policy_id',
args: [
{
name: ':agent_id'
},
{
name: ':policy_id'
}
]
},
{
name: '/decoders',
args: []
@ -426,10 +509,26 @@ export const apiRequestList = [
name: '/decoders/parents',
args: []
},
{
name: '/lists',
args: []
},
{
name: '/lists/files',
args: []
},
{
name: '/manager/configuration',
args: []
},
{
name: '/manager/configuration/validation',
args: []
},
{
name: '/manager/files',
args: []
},
{
name: '/manager/info',
args: []
@ -615,6 +714,33 @@ export const apiRequestList = [
name: '/agents',
args: []
},
{
name: '/agents/group/:group_id',
args: [
{
name: ':group_id'
}
]
},
{
name: '/agents/groups/:group_id/configuration',
args: [
{
name: ':group_id'
}
]
},
{
name: '/agents/groups/:group_id/files/:file_name',
args: [
{
name: ':group_id'
},
{
name: ':file_name'
}
]
},
{
name: '/agents/insert',
args: []
@ -622,6 +748,18 @@ export const apiRequestList = [
{
name: '/agents/restart',
args: []
},
{
name: '/cluster/:node_id/files',
args: [
{
name: ':node_id'
}
]
},
{
name: '/manager/files',
args: []
}
]
}