updated postman collection and instructions

container offline

>>>>>>> b50f991 (moved startContainer.sh to tomcat_file folder)
This commit is contained in:
Alfredo Oliviero 2024-03-12 16:53:03 +01:00
parent debf091afa
commit d17292c1b9
3 changed files with 15 additions and 40 deletions

View File

@ -41,7 +41,6 @@ start the docker container
test urls (replace {{TOKEN}} with your token): test urls (replace {{TOKEN}} with your token):
http://localhost:8081/helloworld/guest http://localhost:8081/helloworld/guest
http://localhost:8080/helloworld/details?gcube-token={{TOKEN}} http://localhost:8080/helloworld/details?gcube-token={{TOKEN}}
@ -51,6 +50,11 @@ http://localhost:8080/helloworld/auth?gcube-token={{TOKEN}} (checks for myRole r
http://localhost:8080/helloworld/auth/orm_member?gcube-token={{TOKEN}} (checks for OrganizationMember role) http://localhost:8080/helloworld/auth/orm_member?gcube-token={{TOKEN}} (checks for OrganizationMember role)
GUBE state:
http://localhost:8081/helloworld/gcube/resource/metrics
http://localhost:8081/helloworld/gcube/resource/health
### Authentication: ### Authentication:
#### GCUBE-TOKEN param #### GCUBE-TOKEN param

View File

@ -1,5 +1,5 @@
[node] [node]
mode = online mode = offline
hostname = mb-lelii.isti.cnr.it hostname = mb-lelii.isti.cnr.it
protocol= http protocol= http
port = 8080 port = 8080

View File

@ -14,7 +14,13 @@
"type": "noauth" "type": "noauth"
}, },
"method": "GET", "method": "GET",
"header": [], "header": [
{
"key": "",
"value": "{{token}}",
"type": "text"
}
],
"url": { "url": {
"raw": "{{base_url}}/{{application}}/hello?gcube-token={{gcube_token}}", "raw": "{{base_url}}/{{application}}/hello?gcube-token={{gcube_token}}",
"host": [ "host": [
@ -138,41 +144,6 @@
}, },
"response": [] "response": []
}, },
{
"name": "auth TOKEN PARAM",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{uma_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/auth/?gcube-token={{gcube_token}}",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"auth",
""
],
"query": [
{
"key": "gcube-token",
"value": "{{gcube_token}}"
}
]
}
},
"response": []
},
{ {
"name": "auth org member BEARER", "name": "auth org member BEARER",
"request": { "request": {
@ -189,9 +160,9 @@
"method": "GET", "method": "GET",
"header": [], "header": [],
"url": { "url": {
"raw": "Z{{base_url}}/{{application}}/auth/org_member", "raw": "{{base_url}}/{{application}}/auth/org_member",
"host": [ "host": [
"Z{{base_url}}" "{{base_url}}"
], ],
"path": [ "path": [
"{{application}}", "{{application}}",