Skip to content

Commit

Permalink
feat: LEAP-1354: API for Bulk Annotation (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
triklozoid authored Sep 9, 2024
1 parent 8c4b648 commit 0c9be05
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fern/openapi/overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2234,6 +2234,13 @@ paths:
x-fern-sdk-method-name: delete
x-fern-audiences:
- public
/api/annotations/bulk:
post:
$ref: "./resources/annotations.yaml#/paths/~1api~1annotations~1bulk/post"
x-fern-sdk-group-name: annotations
x-fern-sdk-method-name: createBulk
x-fern-audiences:
- public
components:
securitySchemes:
Token:
Expand Down Expand Up @@ -2826,4 +2833,4 @@ components:
title: is_archived
description: Is workspace archived
type: boolean
required: true
required: true
39 changes: 39 additions & 0 deletions fern/openapi/resources/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
paths:
/api/annotations/bulk:
post:
summary: Create annotations in bulk
description: >
Create multiple annotations for specific tasks in a bulk operation.
requestBody:
content:
application/json:
schema:
type: object
properties:
tasks:
title: Task IDs
type: array
items:
type: integer
lead_time:
title: Lead Time
type: number
project:
title: Project ID
type: integer
result:
title: Result Data
type: object
responses:
"201":
description: Annotations created successfully
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
title: Annotation ID
type: integer

0 comments on commit 0c9be05

Please sign in to comment.