Skip to content

Commit aeb0636

Browse files
robot-ci-heartexfern-api[bot]jombooth
authored
chore: ROOT-97: annotation reviews to SDK and docs (#566)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Jo Booth <[email protected]>
1 parent 7fb275b commit aeb0636

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+7008
-15734
lines changed

.mock/definition/annotationHistory.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ service:
44
auth: false
55
base-path: ''
66
endpoints:
7-
api_annotation_history_list:
7+
list:
88
path: /api/annotation-history/
99
method: GET
1010
auth: true
@@ -17,8 +17,11 @@ service:
1717
openapi: openapi/openapi.yaml
1818
display-name: List all annotation history items for annotation
1919
request:
20-
name: ApiAnnotationHistoryListRequest
20+
name: AnnotationHistoryListRequest
2121
query-parameters:
22+
annotation:
23+
type: optional<integer>
24+
docs: Annotation ID to get annotation history items for.
2225
ordering:
2326
type: optional<string>
2427
docs: Which field to use when ordering the results.
@@ -44,7 +47,9 @@ service:
4447
review_id: 1
4548
started_at: '2024-01-15T09:30:00Z'
4649
task_id: 1
47-
api_annotation_history_destroy:
50+
audiences:
51+
- public
52+
delete:
4853
path: /api/annotation-history/
4954
method: DELETE
5055
auth: true
@@ -55,14 +60,28 @@ service:
5560
source:
5661
openapi: openapi/openapi.yaml
5762
display-name: Delete annotation history items
63+
request:
64+
name: AnnotationHistoryDeleteRequest
65+
query-parameters:
66+
annotation:
67+
type: optional<integer>
68+
docs: Annotation ID to delete annotation history items for.
69+
project:
70+
type: optional<integer>
71+
docs: Project ID to delete annotation history items for.
72+
task:
73+
type: optional<integer>
74+
docs: Task ID to delete annotation history items for.
5875
response:
5976
docs: Returns a dict containing the count of removed items.
60-
type: ApiAnnotationHistoryDestroyResponse
77+
type: AnnotationHistoryDeleteResponse
6178
examples:
6279
- response:
6380
body:
6481
removed: 1
65-
api_projects_annotation_history_list:
82+
audiences:
83+
- public
84+
list_for_project:
6685
path: /api/projects/{id}/annotation-history/
6786
method: GET
6887
auth: true
@@ -73,7 +92,7 @@ service:
7392
id: integer
7493
display-name: List annotation history items for project
7594
request:
76-
name: ApiProjectsAnnotationHistoryListRequest
95+
name: AnnotationHistoryListForProjectRequest
7796
query-parameters:
7897
page:
7998
type: optional<integer>
@@ -109,10 +128,12 @@ service:
109128
review_id: 1
110129
started_at: '2024-01-15T09:30:00Z'
111130
task_id: 1
131+
audiences:
132+
- public
112133
source:
113134
openapi: openapi/openapi.yaml
114135
types:
115-
ApiAnnotationHistoryDestroyResponse:
136+
AnnotationHistoryDeleteResponse:
116137
properties:
117138
removed:
118139
type: optional<integer>

.mock/definition/annotationReviews.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ service:
44
auth: false
55
base-path: ''
66
endpoints:
7-
api_annotation_reviews_list:
7+
list:
88
path: /api/annotation-reviews/
99
method: GET
1010
auth: true
@@ -13,7 +13,7 @@ service:
1313
openapi: openapi/openapi.yaml
1414
display-name: List reviews
1515
request:
16-
name: ApiAnnotationReviewsListRequest
16+
name: AnnotationReviewsListRequest
1717
query-parameters:
1818
annotation: optional<integer>
1919
annotation__task__project: optional<integer>
@@ -38,7 +38,9 @@ service:
3838
result:
3939
key: value
4040
started_at: '2024-01-15T09:30:00Z'
41-
api_annotation_reviews_create:
41+
audiences:
42+
- public
43+
create:
4244
path: /api/annotation-reviews/
4345
method: POST
4446
auth: true
@@ -48,6 +50,11 @@ service:
4850
display-name: Create review
4951
request:
5052
body: root.AnnotationReviewRequest
53+
query-parameters:
54+
async_postprocess:
55+
type: optional<boolean>
56+
docs: Whether to postprocess the review asynchronously.
57+
name: AnnotationReviewsCreateRequest
5158
content-type: application/json
5259
response:
5360
docs: ''
@@ -69,7 +76,9 @@ service:
6976
result:
7077
key: value
7178
started_at: '2024-01-15T09:30:00Z'
72-
api_annotation_reviews_retrieve:
79+
audiences:
80+
- public
81+
get:
7382
path: /api/annotation-reviews/{id}/
7483
method: GET
7584
auth: true
@@ -101,6 +110,8 @@ service:
101110
result:
102111
key: value
103112
started_at: '2024-01-15T09:30:00Z'
113+
audiences:
114+
- public
104115
api_annotation_reviews_update:
105116
path: /api/annotation-reviews/{id}/
106117
method: PUT
@@ -138,7 +149,9 @@ service:
138149
result:
139150
key: value
140151
started_at: '2024-01-15T09:30:00Z'
141-
api_annotation_reviews_destroy:
152+
audiences:
153+
- internal
154+
delete:
142155
path: /api/annotation-reviews/{id}/
143156
method: DELETE
144157
auth: true
@@ -153,7 +166,9 @@ service:
153166
examples:
154167
- path-parameters:
155168
id: 1
156-
api_annotation_reviews_partial_update:
169+
audiences:
170+
- public
171+
update:
157172
path: /api/annotation-reviews/{id}/
158173
method: PATCH
159174
auth: true
@@ -205,5 +220,7 @@ service:
205220
result:
206221
key: value
207222
started_at: '2024-01-15T09:30:00Z'
223+
audiences:
224+
- public
208225
source:
209226
openapi: openapi/openapi.yaml

.mock/definition/blueprints.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ service:
44
auth: false
55
base-path: ''
66
endpoints:
7-
api_blueprints_create:
7+
create:
88
path: /api/blueprints/
99
method: POST
1010
auth: true
@@ -23,6 +23,7 @@ service:
2323
label_config:
2424
type: optional<string>
2525
docs: Labeling configuration in XML format
26+
project: integer
2627
title:
2728
type: optional<string>
2829
docs: Blueprint name. Must be between 3 and 50 characters long.
@@ -33,7 +34,8 @@ service:
3334
docs: ''
3435
type: root.Blueprint
3536
examples:
36-
- request: {}
37+
- request:
38+
project: 1
3739
response:
3840
body:
3941
created_at: '2024-01-15T09:30:00Z'
@@ -46,7 +48,9 @@ service:
4648
short_url: short_url
4749
title: title
4850
updated_at: '2024-01-15T09:30:00Z'
49-
api_blueprints_destroy:
51+
audiences:
52+
- public
53+
delete:
5054
path: /api/blueprints/{id}/
5155
method: DELETE
5256
auth: true
@@ -59,11 +63,15 @@ service:
5963
examples:
6064
- path-parameters:
6165
id: id
66+
audiences:
67+
- public
6268
api_blueprints_create_project_retrieve:
6369
path: /api/blueprints/{share_id}/create-project
6470
method: GET
6571
auth: true
66-
docs: Create a new project from an existing blueprint
72+
docs: >-
73+
Create a new project from an existing blueprint. On success, user is
74+
redirected to the new project with a 302.
6775
source:
6876
openapi: openapi/openapi.yaml
6977
path-parameters:
@@ -76,5 +84,7 @@ service:
7684
examples:
7785
- path-parameters:
7886
share_id: share_id
87+
audiences:
88+
- internal
7989
source:
8090
openapi: openapi/openapi.yaml

0 commit comments

Comments
 (0)