Skip to content

Commit

Permalink
Merge pull request #87 from regulaforensics/SP-13620/Expand_search_20…
Browse files Browse the repository at this point in the history
…1_response

SP-13620: Expand search 201 response schema
  • Loading branch information
GubinAlexander authored Feb 13, 2024
2 parents 3cbad72 + 20aa26e commit 7ca3c2d
Showing 1 changed file with 32 additions and 18 deletions.
50 changes: 32 additions & 18 deletions search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ paths:
content:
application/json:
schema:
$ref: "#/definitions/PersonCreatedResponse"
$ref: "#/definitions/SearchResult"
400:
$ref: "./identification.yml#/components/responses/SearchBadParamsException"

Expand Down Expand Up @@ -59,21 +59,6 @@ definitions:
items:
type: string
format: uuid
PersonCreatedResponse:
type: object
properties:
code:
type: integer
description: "Result code."
persons:
type: array
description: "Array of Person images."
items:
$ref: "#/definitions/SearchPerson"
metadata:
type: object
additionalProperties: true
description: "A free-form object containing person's extended attributes."
RecognizeImage:
allOf:
- $ref: "./identification.yml#/components/schemas/Image"
Expand All @@ -92,12 +77,41 @@ definitions:
properties:
code:
type: integer
description: "Search result code."
description: "Result code. It is returned only with response 200."
persons:
type: array
description: "Person data."
description: "Array of Person images. It is returned only with response 200."
items:
$ref: "#/definitions/SearchPerson"
id:
type: string
format: uuid
description: "Person ID. The list of persons is sorted by decreasing ID value."
nullable: true
createdAt:
type: string
description: "Person creation date."
nullable: true
updatedAt:
type: string
description: "Person update date."
nullable: true
groups:
type: array
description: "List of groups this person belongs to."
nullable: true
items:
type: string
format: uuid
name:
type: string
description: "Person name."
nullable: true
metadata:
type: object
additionalProperties: true
description: "A free-form object containing person's extended attributes. Available when a person is being created"
nullable: true

SearchPerson:
allOf:
Expand Down

0 comments on commit 7ca3c2d

Please sign in to comment.