Used to list profiles.
URL : /api/v1.0/profiles
Method : GET
Data constraints: None
Code : 200 OK
Content example
[
{
"name": "profileA",
"attributes": {
"attr1": "val1",
"attr2": "val2"
},
"weight": 0
},
{
"name": "profileB",
"attributes": {
"attr1": "val1_bis",
},
"weight": 10
},
]Used to get a single profile.
URL : /api/v1.0/profiles/:profile
Method : GET
Data constraints: None
Code : 200 OK
Content example
{
"name": "profileA",
"attributes": {
"attr1": "val1",
"attr2": "val2"
},
"weight": 0
}Used to delete profiles.
URL : /api/v1.0/profiles/:profile
Method : DELETE
Data constraints: None
Code : 204 No Content
Used to add profiles.
URL : /api/v1.0/profiles
Method : POST
Data constraints:
{
"name": "[valid profile name]",
"attributes": {
"[attribute name}": "[attribute value]",
"[attribute name}": "[attribute value]"
},
"weight": [An integer]
}Data example
{
"name": "profileA",
"attributes": {
"attr1": "val1",
"attr2": "val2"
},
"weight": 10
}Code : 200 OK
Content example
{
"name": "profileA",
"attributes": {
"attr1": "val1",
"attr2": "val2"
},
"weight": 10
}Condition : If 'profile' already exists
Code : 409 CONFLICT
Content : Profile already exists
Used to update profiles.
URL : /api/v1.0/profiles/:profile
Method : PATCH
Data constraints:
{
"attributes": {
"[attribute name}": "[attribute value]",
"[attribute name}": "[attribute value]"
},
"weight": [An integer]
}Data example
{
"attributes": {
"attr1": "val1",
"attr2": "val2"
},
"weight": 10
}Code : 200 OK
Content example
{
"name": "profileA",
"attributes": {
"attr1": "val1",
"attr2": "val2"
},
"weight": 10
}