mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 23:55:25 +03:00
Updated OpenAPI specification for the review controller endpoints
This commit is contained in:
parent
178498b2dd
commit
0f0c8b7e23
139
docs/static/frigate-api.yaml
vendored
139
docs/static/frigate-api.yaml
vendored
@ -292,17 +292,18 @@ paths:
|
|||||||
summary: Set Multiple Reviewed
|
summary: Set Multiple Reviewed
|
||||||
operationId: set_multiple_reviewed_reviews_viewed_post
|
operationId: set_multiple_reviewed_reviews_viewed_post
|
||||||
requestBody:
|
requestBody:
|
||||||
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: '#/components/schemas/ReviewSetMultipleReviewedBody'
|
||||||
title: Body
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Successful Response
|
description: Successful Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema: { }
|
schema:
|
||||||
|
$ref: '#/components/schemas/GenericResponse'
|
||||||
'422':
|
'422':
|
||||||
description: Validation Error
|
description: Validation Error
|
||||||
content:
|
content:
|
||||||
@ -316,17 +317,18 @@ paths:
|
|||||||
summary: Delete Reviews
|
summary: Delete Reviews
|
||||||
operationId: delete_reviews_reviews_delete_post
|
operationId: delete_reviews_reviews_delete_post
|
||||||
requestBody:
|
requestBody:
|
||||||
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: '#/components/schemas/ReviewDeleteMultipleReviewsBody'
|
||||||
title: Body
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Successful Response
|
description: Successful Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema: { }
|
schema:
|
||||||
|
$ref: '#/components/schemas/GenericResponse'
|
||||||
'422':
|
'422':
|
||||||
description: Validation Error
|
description: Validation Error
|
||||||
content:
|
content:
|
||||||
@ -372,7 +374,11 @@ paths:
|
|||||||
description: Successful Response
|
description: Successful Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema: { }
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReviewActivityMotionResponse'
|
||||||
|
title: Response Motion Activity Review Activity Motion Get
|
||||||
'422':
|
'422':
|
||||||
description: Validation Error
|
description: Validation Error
|
||||||
content:
|
content:
|
||||||
@ -418,7 +424,11 @@ paths:
|
|||||||
description: Successful Response
|
description: Successful Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema: { }
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReviewActivityAudioResponse'
|
||||||
|
title: Response Audio Activity Review Activity Audio Get
|
||||||
'422':
|
'422':
|
||||||
description: Validation Error
|
description: Validation Error
|
||||||
content:
|
content:
|
||||||
@ -443,57 +453,60 @@ paths:
|
|||||||
description: Successful Response
|
description: Successful Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema: { }
|
schema:
|
||||||
|
$ref: '#/components/schemas/ReviewSegmentResponse'
|
||||||
'422':
|
'422':
|
||||||
description: Validation Error
|
description: Validation Error
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/HTTPValidationError'
|
$ref: '#/components/schemas/HTTPValidationError'
|
||||||
/review/{event_id}:
|
/review/{review_id}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Review
|
- Review
|
||||||
summary: Get Review
|
summary: Get Review
|
||||||
operationId: get_review_review__event_id__get
|
operationId: get_review_review__review_id__get
|
||||||
parameters:
|
parameters:
|
||||||
- name: event_id
|
- name: review_id
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
title: Event Id
|
title: Review Id
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Successful Response
|
description: Successful Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema: { }
|
schema:
|
||||||
|
$ref: '#/components/schemas/ReviewSegmentResponse'
|
||||||
'422':
|
'422':
|
||||||
description: Validation Error
|
description: Validation Error
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/HTTPValidationError'
|
$ref: '#/components/schemas/HTTPValidationError'
|
||||||
/review/{event_id}/viewed:
|
/review/{review_id}/viewed:
|
||||||
delete:
|
delete:
|
||||||
tags:
|
tags:
|
||||||
- Review
|
- Review
|
||||||
summary: Set Not Reviewed
|
summary: Set Not Reviewed
|
||||||
operationId: set_not_reviewed_review__event_id__viewed_delete
|
operationId: set_not_reviewed_review__review_id__viewed_delete
|
||||||
parameters:
|
parameters:
|
||||||
- name: event_id
|
- name: review_id
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
title: Event Id
|
title: Review Id
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Successful Response
|
description: Successful Response
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema: { }
|
schema:
|
||||||
|
$ref: '#/components/schemas/GenericResponse'
|
||||||
'422':
|
'422':
|
||||||
description: Validation Error
|
description: Validation Error
|
||||||
content:
|
content:
|
||||||
@ -2369,14 +2382,14 @@ paths:
|
|||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: number
|
type: number
|
||||||
default: 1728580419.15206
|
default: 1729155727.144465
|
||||||
title: After
|
title: After
|
||||||
- name: before
|
- name: before
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: number
|
type: number
|
||||||
default: 1728584019.152614
|
default: 1729159327.144483
|
||||||
title: Before
|
title: Before
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
@ -2415,13 +2428,6 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: number
|
type: number
|
||||||
title: End Ts
|
title: End Ts
|
||||||
- name: download
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
title: Download
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Successful Response
|
description: Successful Response
|
||||||
@ -2792,13 +2798,6 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
title: Event Id
|
title: Event Id
|
||||||
- name: download
|
|
||||||
in: query
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
title: Download
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Successful Response
|
description: Successful Response
|
||||||
@ -3265,7 +3264,6 @@ components:
|
|||||||
description:
|
description:
|
||||||
anyOf:
|
anyOf:
|
||||||
- type: string
|
- type: string
|
||||||
minLength: 1
|
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
title: The description of the event
|
title: The description of the event
|
||||||
type: object
|
type: object
|
||||||
@ -3306,6 +3304,19 @@ components:
|
|||||||
- jpg
|
- jpg
|
||||||
- jpeg
|
- jpeg
|
||||||
title: Extension
|
title: Extension
|
||||||
|
GenericResponse:
|
||||||
|
properties:
|
||||||
|
success:
|
||||||
|
type: boolean
|
||||||
|
title: Success
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
title: Message
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- success
|
||||||
|
- message
|
||||||
|
title: GenericResponse
|
||||||
HTTPValidationError:
|
HTTPValidationError:
|
||||||
properties:
|
properties:
|
||||||
detail:
|
detail:
|
||||||
@ -3350,6 +3361,49 @@ components:
|
|||||||
- thumbnails
|
- thumbnails
|
||||||
- snapshot
|
- snapshot
|
||||||
title: RegenerateDescriptionEnum
|
title: RegenerateDescriptionEnum
|
||||||
|
ReviewActivityAudioResponse:
|
||||||
|
properties:
|
||||||
|
start_time:
|
||||||
|
type: integer
|
||||||
|
title: Start Time
|
||||||
|
audio:
|
||||||
|
type: integer
|
||||||
|
title: Audio
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- start_time
|
||||||
|
- audio
|
||||||
|
title: ReviewActivityAudioResponse
|
||||||
|
ReviewActivityMotionResponse:
|
||||||
|
properties:
|
||||||
|
start_time:
|
||||||
|
type: integer
|
||||||
|
title: Start Time
|
||||||
|
motion:
|
||||||
|
type: number
|
||||||
|
title: Motion
|
||||||
|
camera:
|
||||||
|
type: string
|
||||||
|
title: Camera
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- start_time
|
||||||
|
- motion
|
||||||
|
- camera
|
||||||
|
title: ReviewActivityMotionResponse
|
||||||
|
ReviewDeleteMultipleReviewsBody:
|
||||||
|
properties:
|
||||||
|
ids:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
type: array
|
||||||
|
minItems: 1
|
||||||
|
title: Ids
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- ids
|
||||||
|
title: ReviewDeleteMultipleReviewsBody
|
||||||
ReviewSegmentResponse:
|
ReviewSegmentResponse:
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
@ -3387,6 +3441,19 @@ components:
|
|||||||
- thumb_path
|
- thumb_path
|
||||||
- data
|
- data
|
||||||
title: ReviewSegmentResponse
|
title: ReviewSegmentResponse
|
||||||
|
ReviewSetMultipleReviewedBody:
|
||||||
|
properties:
|
||||||
|
ids:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
type: array
|
||||||
|
minItems: 1
|
||||||
|
title: Ids
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- ids
|
||||||
|
title: ReviewSetMultipleReviewedBody
|
||||||
ReviewSummaryResponse:
|
ReviewSummaryResponse:
|
||||||
properties:
|
properties:
|
||||||
last24Hours:
|
last24Hours:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user