diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-04-14 11:39:12 +0000 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-04-14 11:39:12 +0000 |
commit | a29488d0f476eae0a7821026ded3cf538256757b (patch) | |
tree | 4ad1d38150cea6cea0659fed0c15d5bf05ad42fd /development/request.http | |
parent | eeb1ede1a2ae8c55a4d432db80394e02506696fe (diff) |
Upload preferences
Issue-ID: PORTAL-1082
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I265e0c8be481a279347aa653acc483c5017c996d
Diffstat (limited to 'development/request.http')
-rw-r--r-- | development/request.http | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/development/request.http b/development/request.http new file mode 100644 index 0000000..403d4bc --- /dev/null +++ b/development/request.http @@ -0,0 +1,48 @@ +POST http://localhost:8080/auth/realms/ONAP/protocol/openid-connect/token +Content-Type: application/x-www-form-urlencoded + +client_id=portal-app&client_secret=&scope=openid&grant_type=password&username=onap-admin&password=password +> {% + client.global.set("access_token", response.body.access_token); + client.global.set("id_token", response.body.id_token); + %} + +### + +POST http://localhost:9001/v1/preferences +Accept: application/json +Content-Type: application/json +Authorization: Bearer {{access_token}} +X-Auth-Identity: Bearer {{id_token}} +X-Request-Id: {{$uuid}} + +{ + "properties": { + "dashboard": { + "apps": { + "availableTiles": [ + { + "type": "USER_LAST_ACTION_TILE", + "displayed": false + } + ], + "lastUserAction": { + "interval": "1H", + "filterType": "ALL" + } + } + } + } +} + +### + +GET http://localhost:9001/v1/preferences +Accept: application/json +Authorization: Bearer {{access_token}} +X-Auth-Identity: Bearer {{id_token}} +X-Request-Id: {{$uuid}} + +### + + |