Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Commit c4c324a

Browse files
authored
Merge pull request #23 from open-AIMS/feat/improved-container-scaling-algorithm
2 parents 126afce + 7b6843f commit c4c324a

File tree

11 files changed

+1343
-239
lines changed

11 files changed

+1343
-239
lines changed

api-test/jobs.http

Lines changed: 70 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,50 @@ Authorization: Bearer {{authToken}}
5050
{
5151
"type": "TEST",
5252
"inputPayload": {
53-
"id" : 1
53+
"id" : 1111111
5454
}
5555
}
5656

57-
### Create a new suitability assessment job
57+
### Create a new regional assessment job (with full params)
58+
# @name createRegionalAssessmentJob
59+
POST {{baseUrl}}/jobs
60+
Content-Type: {{contentType}}
61+
Authorization: Bearer {{authToken}}
62+
63+
{
64+
"type": "REGIONAL_ASSESSMENT",
65+
"inputPayload": {
66+
"region": "Mackay-Capricorn",
67+
"reef_type": "slopes",
68+
"depth_min": -10.1,
69+
"depth_max": -2.1,
70+
"slope_min": 0.1,
71+
"slope_max": 30.0,
72+
"rugosity_min": 0.0,
73+
"rugosity_max": 6.0,
74+
"waves_period_min": 1.94303,
75+
"waves_period_max": 9.32689,
76+
"waves_height_min": 0.237052,
77+
"waves_height_max": 2.53194,
78+
"threshold": 95
79+
}
80+
}
81+
82+
### Create a new regional assessment job (with minimal params)
83+
# @name createRegionalAssessmentJob
84+
POST {{baseUrl}}/jobs
85+
Content-Type: {{contentType}}
86+
Authorization: Bearer {{authToken}}
87+
88+
{
89+
"type": "REGIONAL_ASSESSMENT",
90+
"inputPayload": {
91+
"region": "Mackay-Capricorn",
92+
"reef_type": "slopes"
93+
}
94+
}
95+
96+
### Create a new suitability assessment job (with full params)
5897
# @name createSuitabilityJob
5998
POST {{baseUrl}}/jobs
6099
Content-Type: {{contentType}}
@@ -63,20 +102,41 @@ Authorization: Bearer {{authToken}}
63102
{
64103
"type": "SUITABILITY_ASSESSMENT",
65104
"inputPayload": {
66-
"region": "Cairns-Cooktown",
105+
"region": "Mackay-Capricorn",
67106
"reef_type": "slopes",
68-
"depth_min": -7.0,
69-
"depth_max": -3.9,
70-
"slope_min": 0.2,
71-
"slope_max": 40.0,
107+
"depth_min": -10.1,
108+
"depth_max": -2.1,
109+
"slope_min": 0.1,
110+
"slope_max": 30.0,
72111
"rugosity_min": 0.0,
73112
"rugosity_max": 6.0,
74-
"x_dist" : 450,
75-
"y_dist" : 20,
113+
"waves_period_min": 1.94303,
114+
"waves_period_max": 9.32689,
115+
"waves_height_min": 0.237052,
116+
"waves_height_max": 2.53194,
117+
"x_dist": 451,
118+
"y_dist": 27,
76119
"threshold": 95
77120
}
78121
}
79122

123+
### Create a new suitability assessment job (with minimal params)
124+
# @name createSuitabilityJob
125+
POST {{baseUrl}}/jobs
126+
Content-Type: {{contentType}}
127+
Authorization: Bearer {{authToken}}
128+
129+
{
130+
"type": "SUITABILITY_ASSESSMENT",
131+
"inputPayload": {
132+
"region": "Mackay-Capricorn",
133+
"reef_type": "slopes",
134+
"x_dist": 451,
135+
"y_dist": 27
136+
}
137+
}
138+
139+
80140
### Store the job IDs for further operations
81141
@jobId = {{createJob.response.body.jobId}}
82142
@jobId = {{createSuitabilityJob.response.body.jobId}}
@@ -241,4 +301,4 @@ Authorization: Bearer {{authToken}}
241301

242302
### Try download (should fail as job is not complete)
243303
GET {{baseUrl}}/jobs/{{jobId}}/download
244-
Authorization: Bearer {{authToken}}
304+
Authorization: Bearer {{authToken}}

0 commit comments

Comments
 (0)