Skip to content

Commit

Permalink
Merge pull request #571 from wri/doc/list-otf
Browse files Browse the repository at this point in the history
Doc/list otf
  • Loading branch information
solomon-negusse authored Aug 12, 2024
2 parents 82850ef + 0b0786f commit 0fe58c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions terraform/modules/api_gateway/gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module "query_get" {

require_api_key = true
http_method = "GET"
authorization = "NONE"
authorization = "CUSTOM"

integration_parameters = {
"integration.request.path.version" = "method.request.path.version"
Expand All @@ -75,7 +75,7 @@ module "query_post" {

require_api_key = true
http_method = "POST"
authorization = "NONE"
authorization = "CUSTOM"

integration_parameters = {
"integration.request.path.version" = "method.request.path.version"
Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/api_gateway/resource/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "aws_api_gateway_gateway_response" "exceeded_quota" {
response_type = "QUOTA_EXCEEDED"

response_templates = {
"application/json" = "{\"status\":\"failed\",\"message\":\"Exceeded the daily quota for this resource. Please email us at [email protected] to see if your use case may qualify for higher quota.\"}"
"application/json" = "{\"status\":\"failed\",\"message\":\"Exceeded the daily quota for this resource. If you're running analysis on a list of areas of interest, please use the batch analysis endpoint to avoid this error: https://staging-data-api.globalforestwatch.org/#tag/Query/operation/query_dataset_list_post_dataset__dataset___version__query_batch_post. Otherwise, email us at [email protected] to see if your use case may qualify for higher quota.\"}"
}
}

Expand All @@ -81,7 +81,7 @@ resource "aws_api_gateway_gateway_response" "throttled" {
response_type = "THROTTLED"

response_templates = {
"application/json" = "{\"status\":\"failed\",\"message\":\"Exceeded the rate limit for this resource. Please try again later. Also email us at [email protected] to see if your use case may qualify for higher rate limit.\"}"
"application/json" = "{\"status\":\"failed\",\"message\":\"Exceeded the rate limit for this resource. If you're running analysis on a list of areas of interest, please use the batch analysis endpoint to avoid this error: https://staging-data-api.globalforestwatch.org/#tag/Query/operation/query_dataset_list_post_dataset__dataset___version__query_batch_post. Otherwise, email us at [email protected] to see if your use case may qualify for higher rate limit.\"}"
}
}

Expand Down

0 comments on commit 0fe58c1

Please sign in to comment.