diff --git a/schemas/components/schemas/EventsGetSearchEventsResponse.yaml b/schemas/components/schemas/EventsGetSearchEventsResponse.yaml deleted file mode 100644 index d8c3684..0000000 --- a/schemas/components/schemas/EventsGetSearchEventsResponse.yaml +++ /dev/null @@ -1,16 +0,0 @@ -components: - schemas: - EventsListResponse: - type: object - description: >- - Contains a list of events from all activated products - additionalProperties: false - required: - - events - properties: - events: - type: array - items: - $ref: 'EventsGetResponse.yaml' - paginationKey: - type: string \ No newline at end of file diff --git a/schemas/components/schemas/SearchEventsResponse.yaml b/schemas/components/schemas/SearchEventsResponse.yaml new file mode 100644 index 0000000..4d49138 --- /dev/null +++ b/schemas/components/schemas/SearchEventsResponse.yaml @@ -0,0 +1,18 @@ +type: object +description: >- + Contains a list of events from all activated products +additionalProperties: false +properties: + events: + type: array + items: + type: object + description: >- + Results for each identification event + required: + - products + properties: + products: + $ref: Products.yaml + paginationKey: + type: string \ No newline at end of file diff --git a/schemas/paths/event-search.yaml b/schemas/paths/event-search.yaml index b01445a..1b710f2 100644 --- a/schemas/paths/event-search.yaml +++ b/schemas/paths/event-search.yaml @@ -84,14 +84,14 @@ get: Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent). responses: '200': - description: OK. + description: Events matching the filter(s). content: application/json: schema: - $ref: '../components/schemas/EventsGetSearchEventsResponse.yaml' + $ref: '../components/schemas/SearchEventsResponse.yaml' examples: 200-full: - summary: Example response + summary: Example search results externalValue: 'examples/get_event_search_200.json' '403': description: Forbidden. Access to this API is denied.