Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- added fullClassification query parameter to profile api call
  • Loading branch information
temi committed Jul 30, 2024
1 parent 5fc1b51 commit b3aeb90
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions grails-app/controllers/au/org/ala/profile/api/ApiController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,21 @@ class ApiController extends BaseController {
@Parameter(name = "onlyContent",
in = ParameterIn.QUERY,
required = false,
description = "if true, only return the species description and not additional information like opus metadata etc.",
description = "if true, only return the species description and not additional information like opus metadata, map configuration etc.",
schema = @Schema(
name = "onlyContent",
type = "boolean",
defaultValue = "false"
)),
@Parameter(name = "fullClassification",
in = ParameterIn.QUERY,
required = false,
description = "if true, annotate classification with links to its profile page. Response will be slow.",
schema = @Schema(
name = "fullClassification",
type = "boolean",
defaultValue = "true"
)),
@Parameter(name = "Access-Token",
in = ParameterIn.HEADER,
required = false,
Expand All @@ -361,7 +370,7 @@ class ApiController extends BaseController {
} else {
response.setContentType(CONTENT_TYPE_JSON)
boolean latest = false
final fullClassification = true
boolean fullClassification = params.getBoolean('fullClassification', true)
boolean includeImages = params.getBoolean('includeImages', false)
boolean onlyContent = params.getBoolean('onlyContent', false)
Map profileAndOpus
Expand Down

0 comments on commit b3aeb90

Please sign in to comment.