Skip to content

Commit

Permalink
Update response format (#3411)
Browse files Browse the repository at this point in the history
* update task protection responses format

* Remove ExpiresInMinutes validation, remove unnecessary types and marshal functions

* Remove failure handling - instead of returning 4XX http status code, return 200 instead
  • Loading branch information
Realmonia committed Oct 12, 2022
1 parent 8eb87a3 commit cc23b4e
Show file tree
Hide file tree
Showing 8 changed files with 421 additions and 275 deletions.
3 changes: 2 additions & 1 deletion agent/ecs_client/model/api/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,8 @@
"type":"structure",
"members":{
"arn":{"shape":"String"},
"reason":{"shape":"String"}
"reason":{"shape":"String"},
"detail":{"shape":"String"}
}
},
"Failures":{
Expand Down
8 changes: 8 additions & 0 deletions agent/ecs_client/model/ecs/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

268 changes: 163 additions & 105 deletions agent/handlers/agentapi/taskprotection/v1/handlers/handlers.go

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cc23b4e

Please sign in to comment.