Users
Create A User
$ curl 'http://localhost:8080/users' -i -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{
"identifier" : "Ahmes_friend",
"role" : "scribe",
"password" : "c2VraGVt"
}'
POST /users HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 83
{
"identifier" : "Ahmes_friend",
"role" : "scribe",
"password" : "c2VraGVt"
}
$ echo '{
"identifier" : "Ahmes_friend",
"role" : "scribe",
"password" : "c2VraGVt"
}' | http POST 'http://localhost:8080/users' 'Accept:application/json' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
user’s identifier |
|
|
user’s role |
|
|
user’s password |
HTTP/1.1 202 Accepted
Find A User
$ curl 'http://localhost:8080/users/Ahmes_friend' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /users/Ahmes_friend HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/users/Ahmes_friend' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 56
{
"identifier" : "Ahmes_friend",
"role" : "scribe"
}
Path | Type | Description |
---|---|---|
|
|
user’s identifier |
|
|
user’s role |
Find All Users
$ curl 'http://localhost:8080/users' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /users HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/users' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 231
[ {
"identifier" : "Ahmes_Other_friend",
"role" : "cobbler"
}, {
"identifier" : "Ahmes1",
"role" : "pharaoh"
}, {
"identifier" : "antony",
"role" : "pharaoh"
}, {
"identifier" : "Ahmes_friend",
"role" : "scribe"
} ]
Path | Type | Description |
---|---|---|
|
|
first user’s identifier |
|
|
first user’s role |
|
|
second user’s identifier |
|
|
second user’s role |
|
|
third user’s identifier |
|
|
third user’s role |
|
|
fourth user’s identifier |
|
|
fourth user’s role |
Get A User’s Permissions
$ curl 'http://localhost:8080/users/Ahmes_friend/permissions' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /users/Ahmes_friend/permissions HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/users/Ahmes_friend/permissions' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 125
[ {
"permittableEndpointGroupIdentifier" : "identity__v1__self",
"allowedOperations" : [ "DELETE", "READ", "CHANGE" ]
} ]
Path | Type | Description |
---|---|---|
|
|
permittable endpoint group identifier |
|
|
Set of allowed operations |
Change A User’s Role
$ curl 'http://localhost:8080/users/Ahmes_friend/roleIdentifier' -i -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{
"identifier" : "cobbler"
}'
PUT /users/Ahmes_friend/roleIdentifier HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 30
{
"identifier" : "cobbler"
}
$ echo '{
"identifier" : "cobbler"
}' | http PUT 'http://localhost:8080/users/Ahmes_friend/roleIdentifier' 'Accept:application/json' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
updated role identifier |
HTTP/1.1 202 Accepted
Change A User’s Password
$ curl 'http://localhost:8080/users/Daddy/password' -i -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{
"password" : "c2VraGVtRGFkZHk="
}'
PUT /users/Daddy/password HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 37
{
"password" : "c2VraGVtRGFkZHk="
}
$ echo '{
"password" : "c2VraGVtRGFkZHk="
}' | http PUT 'http://localhost:8080/users/Daddy/password' 'Accept:application/json' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
updated password |
HTTP/1.1 202 Accepted
Roles
Create A Role
$ curl 'http://localhost:8080/roles' -i -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{
"identifier" : "scribe1",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__roles",
"allowedOperations" : [ "DELETE", "READ", "CHANGE" ]
} ]
}'
POST /roles HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 182
{
"identifier" : "scribe1",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__roles",
"allowedOperations" : [ "DELETE", "READ", "CHANGE" ]
} ]
}
$ echo '{
"identifier" : "scribe1",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__roles",
"allowedOperations" : [ "DELETE", "READ", "CHANGE" ]
} ]
}' | http POST 'http://localhost:8080/roles' 'Accept:application/json' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
Identifier |
|
|
permittable endpoints |
|
|
Set of allowed operations |
HTTP/1.1 202 Accepted
Find A Role
$ curl 'http://localhost:8080/roles/scribe1' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /roles/scribe1 HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/roles/scribe1' 'Accept:*/*' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
Identifier |
|
|
permittable endpoints |
|
|
Set of allowed operations |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 182
{
"identifier" : "scribe1",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__roles",
"allowedOperations" : [ "READ", "CHANGE", "DELETE" ]
} ]
}
Find Roles
$ curl 'http://localhost:8080/roles' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /roles HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/roles' 'Accept:*/*' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
first role’s identifier |
|
|
first role’s roles permittable |
|
|
Set of first role’s allowed operations |
|
|
first role’s users permittable |
|
|
Set of first role’s allowed operations |
|
|
first role’s self permittable |
|
|
Set of first role’s allowed operations |
|
|
first role’s app_self permittable |
|
|
Set of first role’s allowed operations |
|
|
second role’s identifier |
|
|
second role’s roles permittable |
|
|
Set of second role’s allowed operations |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 762
[ {
"identifier" : "pharaoh",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__roles",
"allowedOperations" : [ "READ", "CHANGE", "DELETE" ]
}, {
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "READ", "CHANGE", "DELETE" ]
}, {
"permittableEndpointGroupIdentifier" : "identity__v1__self",
"allowedOperations" : [ "READ", "CHANGE", "DELETE" ]
}, {
"permittableEndpointGroupIdentifier" : "identity__v1__app_self",
"allowedOperations" : [ "READ", "CHANGE", "DELETE" ]
} ]
}, {
"identifier" : "scribe1",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__roles",
"allowedOperations" : [ "READ", "CHANGE", "DELETE" ]
} ]
} ]
Update A Role
$ curl 'http://localhost:8080/roles/scribe1' -i -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{
"identifier" : "scribe1",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "READ", "DELETE", "CHANGE" ]
} ]
}'
PUT /roles/scribe1 HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 182
{
"identifier" : "scribe1",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "READ", "DELETE", "CHANGE" ]
} ]
}
$ echo '{
"identifier" : "scribe1",
"permissions" : [ {
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "READ", "DELETE", "CHANGE" ]
} ]
}' | http PUT 'http://localhost:8080/roles/scribe1' 'Accept:application/json' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
Identifier |
|
|
permittable endpoints |
|
|
Set of allowed operations |
HTTP/1.1 202 Accepted
Delete A Role
$ curl 'http://localhost:8080/roles/scribe1' -i -X DELETE -H 'Accept: */*' -H 'Content-Type: application/json'
DELETE /roles/scribe1 HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http DELETE 'http://localhost:8080/roles/scribe1' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 202 Accepted
Permittable Groups
Create A Permittable Group
$ curl 'http://localhost:8080/permittablegroups' -i -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{
"identifier" : "group1",
"permittables" : [ {
"path" : "/exx/eyy/eze",
"method" : "POST",
"groupId" : "id",
"acceptTokenIntendedForForeignApplication" : false
} ]
}'
POST /permittablegroups HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 188
{
"identifier" : "group1",
"permittables" : [ {
"path" : "/exx/eyy/eze",
"method" : "POST",
"groupId" : "id",
"acceptTokenIntendedForForeignApplication" : false
} ]
}
$ echo '{
"identifier" : "group1",
"permittables" : [ {
"path" : "/exx/eyy/eze",
"method" : "POST",
"groupId" : "id",
"acceptTokenIntendedForForeignApplication" : false
} ]
}' | http POST 'http://localhost:8080/permittablegroups' 'Accept:application/json' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
Permittable group identifier |
|
|
RequestMapping value |
|
|
HTTP Request Method |
|
|
permittable identifier |
|
|
Accept token for foreign application |
HTTP/1.1 202 Accepted
Find A Permittable Group
$ curl 'http://localhost:8080/permittablegroups/pgroup1' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /permittablegroups/pgroup1 HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/permittablegroups/pgroup1' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 189
{
"identifier" : "pgroup1",
"permittables" : [ {
"path" : "/exx/eyy/eze",
"method" : "POST",
"groupId" : "id",
"acceptTokenIntendedForForeignApplication" : false
} ]
}
Path | Type | Description |
---|---|---|
|
|
Permittable group identifier |
|
|
RequestMapping value |
|
|
HTTP Request Method |
|
|
permittable identifier |
|
|
Accept token for foreign application ? |
Get All Permittable Groups
$ curl 'http://localhost:8080/permittablegroups' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /permittablegroups HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/permittablegroups' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 4602
[ {
"identifier" : "identity__v1__roles",
"permittables" : [ {
"path" : "identity-v1/roles/*",
"method" : "GET",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/roles/*",
"method" : "POST",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/roles/*",
"method" : "PUT",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/roles/*",
"method" : "DELETE",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/permittablegroups/*",
"method" : "GET",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/permittablegroups/*",
"method" : "POST",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/permittablegroups/*",
"method" : "PUT",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/permittablegroups/*",
"method" : "DELETE",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
} ]
}, {
"identifier" : "identity__v1__self",
"permittables" : [ {
"path" : "identity-v1/users/{useridentifier}/password",
"method" : "GET",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/users/{useridentifier}/password",
"method" : "POST",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/users/{useridentifier}/password",
"method" : "PUT",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/users/{useridentifier}/password",
"method" : "DELETE",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/applications/*/permissions/*/users/{useridentifier}/enabled",
"method" : "GET",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/applications/*/permissions/*/users/{useridentifier}/enabled",
"method" : "POST",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/applications/*/permissions/*/users/{useridentifier}/enabled",
"method" : "PUT",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/applications/*/permissions/*/users/{useridentifier}/enabled",
"method" : "DELETE",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
} ]
}, {
"identifier" : "identity__v1__users",
"permittables" : [ {
"path" : "identity-v1/users/*",
"method" : "GET",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/users/*",
"method" : "POST",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/users/*",
"method" : "PUT",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/users/*",
"method" : "DELETE",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
} ]
}, {
"identifier" : "identity__v1__app_self",
"permittables" : [ {
"path" : "identity-v1/applications/{applicationidentifier}/permissions",
"method" : "GET",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/applications/{applicationidentifier}/permissions",
"method" : "POST",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/applications/{applicationidentifier}/permissions",
"method" : "PUT",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
}, {
"path" : "identity-v1/applications/{applicationidentifier}/permissions",
"method" : "DELETE",
"groupId" : null,
"acceptTokenIntendedForForeignApplication" : false
} ]
}, {
"identifier" : "pgroup1",
"permittables" : [ {
"path" : "/exx/eyy/eze",
"method" : "POST",
"groupId" : "id",
"acceptTokenIntendedForForeignApplication" : false
} ]
}, {
"identifier" : "pgroup2",
"permittables" : [ {
"path" : "/exx/eyy/eze",
"method" : "POST",
"groupId" : "id",
"acceptTokenIntendedForForeignApplication" : false
} ]
} ]
Path | Type | Description |
---|---|---|
|
|
Permittable group identifier |
|
|
RequestMapping value |
|
|
HTTP Request Method |
|
|
permittable identifier |
|
|
Accept token for foreign application ? |
|
|
Permittable group identifier |
|
|
RequestMapping value |
|
|
HTTP Request Method |
|
|
permittable identifier |
|
|
Accept token for foreign application ? |
Applications
Get Applications
$ curl 'http://localhost:8080/applications' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /applications HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/applications' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 30
[ "test995-v1", "test028-v1" ]
Delete An Application
$ curl 'http://localhost:8080/applications/test303-v1' -i -X DELETE -H 'Accept: */*' -H 'Content-Type: application/json'
DELETE /applications/test303-v1 HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http DELETE 'http://localhost:8080/applications/test303-v1' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 202 Accepted
Set An Application’s Signature
$ curl 'http://localhost:8080/applications/testApp255-v1/signatures/2018-06-21T10_36_12' -i -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{
"publicKeyMod" : 28444811764607488859329317332012212093787131936628417112795864601446972420342430080606084199730585439504551192431623120684974512526813529763648106930975536810294843146316445172999990609819210706537414247811599743545038298434430665664632610176112330802466093561140394786113602135986318674090759978810522291074982509727327919765843260837276155269165967622038999979805920306186222393500928328981507109556829333485524913313394862386746981597982334637423546121398742168764040011044482416181226919045780054123080200054099936180827787385016577943424321199424251515846986250172369732815966605814432774914865574386642310346303,
"publicKeyExp" : 65537
}'
PUT /applications/testApp255-v1/signatures/2018-06-21T10_36_12 HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 666
{
"publicKeyMod" : 28444811764607488859329317332012212093787131936628417112795864601446972420342430080606084199730585439504551192431623120684974512526813529763648106930975536810294843146316445172999990609819210706537414247811599743545038298434430665664632610176112330802466093561140394786113602135986318674090759978810522291074982509727327919765843260837276155269165967622038999979805920306186222393500928328981507109556829333485524913313394862386746981597982334637423546121398742168764040011044482416181226919045780054123080200054099936180827787385016577943424321199424251515846986250172369732815966605814432774914865574386642310346303,
"publicKeyExp" : 65537
}
$ echo '{
"publicKeyMod" : 28444811764607488859329317332012212093787131936628417112795864601446972420342430080606084199730585439504551192431623120684974512526813529763648106930975536810294843146316445172999990609819210706537414247811599743545038298434430665664632610176112330802466093561140394786113602135986318674090759978810522291074982509727327919765843260837276155269165967622038999979805920306186222393500928328981507109556829333485524913313394862386746981597982334637423546121398742168764040011044482416181226919045780054123080200054099936180827787385016577943424321199424251515846986250172369732815966605814432774914865574386642310346303,
"publicKeyExp" : 65537
}' | http PUT 'http://localhost:8080/applications/testApp255-v1/signatures/2018-06-21T10_36_12' 'Accept:application/json' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
public key mod |
|
|
public key exp |
HTTP/1.1 202 Accepted
Get An Application’s Signature
$ curl 'http://localhost:8080/applications/testApp007-v1/signatures/2018-06-21T10_43_29' -i -H 'Accept: application/json' -H 'Content-Type: */*'
GET /applications/testApp007-v1/signatures/2018-06-21T10_43_29 HTTP/1.1
Accept: application/json
Content-Type: */*
Host: localhost:8080
$ http GET 'http://localhost:8080/applications/testApp007-v1/signatures/2018-06-21T10_43_29' 'Accept:application/json' 'Content-Type:*/*'
Path | Type | Description |
---|---|---|
|
|
public key mod |
|
|
public key exp |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 666
{
"publicKeyMod" : 20869368027439811928873645145084333333532147453939223661363242977281870271375778466087793358073290969371872352805034916113565240343571511807449592546610998249493859724244181914188263173028495804970881533710478409986738995383183960436377322496117800759778253531543055367603343362207672119223911325855330121829327064935349522003616591259147925420728973156753881767030028918071136968975636045215249588723053143988568025240762625232784131045396596261508010540341168752378894130603165784477967697613626093939636462706510321422586689409611776806038932422838089529899459939062390414165964287380579142554585875357600669036631,
"publicKeyExp" : 65537
}
Create An Application’s Permission
$ curl 'http://localhost:8080/applications/testApp253-v1/permissions' -i -X POST -H 'Accept: */*' -H 'Content-Type: application/json' -d '{
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "READ" ]
}'
POST /applications/testApp253-v1/permissions HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
Content-Length: 102
{
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "READ" ]
}
$ echo '{
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "READ" ]
}' | http POST 'http://localhost:8080/applications/testApp253-v1/permissions' 'Accept:*/*' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
permittable group endpoint identifier |
|
|
Set of Allowed Operations |
HTTP/1.1 202 Accepted
Get An Application’s Permission
$ curl 'http://localhost:8080/applications/testApp131-v1/permissions/identity__v1__users' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /applications/testApp131-v1/permissions/identity__v1__users HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/applications/testApp131-v1/permissions/identity__v1__users' 'Accept:*/*' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
permittable group endpoint identifier |
|
|
Set of Allowed Operations |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 104
{
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "CHANGE" ]
}
Get An Application’s Permissions
$ curl 'http://localhost:8080/applications/testApp777-v1/permissions' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /applications/testApp777-v1/permissions HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/applications/testApp777-v1/permissions' 'Accept:*/*' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
first permittable group endpoint identifier |
|
|
Set of Allowed Operations |
|
|
second permittable group endpoint identifier |
|
|
Set of Allowed Operations |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 214
[ {
"permittableEndpointGroupIdentifier" : "identity__v1__roles",
"allowedOperations" : [ "DELETE" ]
}, {
"permittableEndpointGroupIdentifier" : "identity__v1__users",
"allowedOperations" : [ "CHANGE" ]
} ]
Delete An Application’s Permission
$ curl 'http://localhost:8080/applications/testApp065-v1/permissions/identity__v1__users' -i -X DELETE -H 'Accept: */*' -H 'Content-Type: application/json'
DELETE /applications/testApp065-v1/permissions/identity__v1__users HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http DELETE 'http://localhost:8080/applications/testApp065-v1/permissions/identity__v1__users' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 202 Accepted
Create An Application’s Call Endpoint
$ curl 'http://localhost:8080/applications/test486-v1/callendpointset' -i -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{
"identifier" : "end_pt_set1",
"permittableEndpointGroupIdentifiers" : [ ]
}'
POST /applications/test486-v1/callendpointset HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 81
{
"identifier" : "end_pt_set1",
"permittableEndpointGroupIdentifiers" : [ ]
}
$ echo '{
"identifier" : "end_pt_set1",
"permittableEndpointGroupIdentifiers" : [ ]
}' | http POST 'http://localhost:8080/applications/test486-v1/callendpointset' 'Accept:application/json' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
call endpoint set identifier |
|
|
permittable group endpoint identifier |
HTTP/1.1 202 Accepted
Change An Application’s Call Endpoint
$ curl 'http://localhost:8080/applications/test472-v1/callendpointset/end_pt_set1' -i -X PUT -H 'Accept: */*' -H 'Content-Type: application/json' -d '{
"identifier" : "end_pt_set1",
"permittableEndpointGroupIdentifiers" : [ "ideeOne", "ideeTwo" ]
}'
PUT /applications/test472-v1/callendpointset/end_pt_set1 HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
Content-Length: 102
{
"identifier" : "end_pt_set1",
"permittableEndpointGroupIdentifiers" : [ "ideeOne", "ideeTwo" ]
}
$ echo '{
"identifier" : "end_pt_set1",
"permittableEndpointGroupIdentifiers" : [ "ideeOne", "ideeTwo" ]
}' | http PUT 'http://localhost:8080/applications/test472-v1/callendpointset/end_pt_set1' 'Accept:*/*' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
call endpoint set identifier |
|
|
permittable group endpoint identifier |
HTTP/1.1 202 Accepted
Get Unique Call Endpoint Set In An Application
$ curl 'http://localhost:8080/applications/test243-v1/callendpointset/end_pt_set1' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /applications/test243-v1/callendpointset/end_pt_set1 HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/applications/test243-v1/callendpointset/end_pt_set1' 'Accept:*/*' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
call endpoint call set identifier |
|
|
permittable group endpoint identifier |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 102
{
"identifier" : "end_pt_set1",
"permittableEndpointGroupIdentifiers" : [ "ideeOne", "ideeTwo" ]
}
Get All Call Endpoint Sets In An Application
$ curl 'http://localhost:8080/applications/test489-v1/callendpointset' -i -H 'Accept: */*' -H 'Content-Type: application/json'
GET /applications/test489-v1/callendpointset HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http GET 'http://localhost:8080/applications/test489-v1/callendpointset' 'Accept:*/*' 'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
first call endpoint call set identifier |
|
|
first permittable group endpoint identifier |
|
|
second call endpoint call set identifier |
|
|
second permittable group endpoint identifier |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 198
[ {
"identifier" : "end_pt_set1",
"permittableEndpointGroupIdentifiers" : [ "ideeOne", "ideeTwo" ]
}, {
"identifier" : "endptset2",
"permittableEndpointGroupIdentifiers" : [ "ideeZero" ]
} ]
Delete An Application’s Call Endpoint Set
$ curl 'http://localhost:8080/applications/test912-v1/callendpointset/end_pt_set1' -i -X DELETE -H 'Accept: */*' -H 'Content-Type: application/json'
DELETE /applications/test912-v1/callendpointset/end_pt_set1 HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
$ http DELETE 'http://localhost:8080/applications/test912-v1/callendpointset/end_pt_set1' 'Accept:*/*' 'Content-Type:application/json'
HTTP/1.1 202 Accepted