-
Notifications
You must be signed in to change notification settings - Fork 0
/
convert-url-app.http
115 lines (86 loc) · 2.63 KB
/
convert-url-app.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
@domain = 192-168-49-2.nip.io
@ades = ades-open.{{domain}}
@login = auth.{{domain}}
@user = eric
@pass = defaultPWD
@tokenEndpoint = {{openidConfiguration.response.body.token_endpoint}}
@idToken = {{authenticate.response.body.id_token}}
@deployStatus = {{deployProcess.response.headers.Location}}
@executeStatus = {{executeProcess.response.headers.Location}}
###
# @name openidConfiguration
GET https://{{login}}/.well-known/openid-configuration HTTP/1.1
Accept: application/json
###
# @name authenticate
POST {{tokenEndpoint}} HTTP/1.1
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded
scope=openid user_name is_operator&grant_type=password&username={{user}}&password={{pass}}&client_id={{clientId}}&client_secret={{clientSecret}}
###
# @name listProcesses
GET https://{{ades}}/{{user}}/wps3/processes HTTP/1.1
Authorization: Bearer {{idToken}}
Accept: application/json
###
# @name deployProcess
POST https://{{ades}}/{{user}}/wps3/processes HTTP/1.1
Authorization: Bearer {{idToken}}
Accept: application/json
Content-Type: application/json
{
"executionUnit": {
"href": "https://raw.githubusercontent.com/tjellicoe-tpzuk/ades_python_convert/main/convert-url-app.cwl",
"type": "application/cwl"
}
}
###
# @name getDeployStatus
GET https://{{ades}}{{deployStatus}} HTTP/1.1
Authorization: Bearer {{idToken}}
Accept: application/json
###
# @name getProcessDetails
GET https://{{ades}}/{{user}}/wps3/processes/convert-url-0_1_2 HTTP/1.1
Authorization: Bearer {{idToken}}
Accept: application/json
###
# @name deleteProcess
DELETE https://{{ades}}/{{user}}/wps3/processes/convert-url-0_1_2 HTTP/1.1
Authorization: Bearer {{idToken}}
Accept: application/json
###
# @name executeProcess
POST https://{{ades}}/{{user}}/wps3/processes/convert-url-0_1_2/execution HTTP/1.1
# Authorization: Bearer {{idToken}}
Accept: application/json
Content-Type: application/json
Prefer: respond-async
{
"inputs": {
"fn": "resize",
"url": "https://raw.githubusercontent.com/tjellicoe-tpzuk/python_convert/main/cat.png",
"size": "25%"
},
"response":"raw"
}
###
# @name getExecuteStatus
GET https://{{ades}}{{executeStatus}} HTTP/1.1
#Authorization: Bearer {{idToken}}
Accept: application/json
###
# @name getProcessingResults
GET https://{{ades}}{{executeStatus}}/result HTTP/1.1
Authorization: Bearer {{idToken}}
Accept: application/json
###
# @name undeployProcess
DELETE https://{{ades}}/{{user}}/wps3/processes/convert-url-0_0_1 HTTP/1.1
Authorization: Bearer {{idToken}}
Accept: application/json
###
# @name listJobs
GET https://{{ades}}/{{user}}/wps3/jobs HTTP/1.1
Authorization: Bearer {{idToken}}
Accept: application/json