Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4275,7 +4275,7 @@ types:
docs: Task Serializer with project scheme configs validation
properties:
agreement: string
agreement_filtered: string
agreement_selected: string
annotations: string
annotations_ids: string
annotations_results: string
Expand Down Expand Up @@ -4722,7 +4722,7 @@ types:
docs: Task Serializer with project scheme configs validation
properties:
agreement: string
agreement_filtered: string
agreement_selected: string
annotations: string
annotations_ids: string
annotations_results: string
Expand Down Expand Up @@ -6058,6 +6058,7 @@ types:
minLength: 1
maxLength: 1000
organization: optional<integer>
project_id: integer
project_settings: optional<unknown>
require_comment_on_skip:
type: optional<boolean>
Expand Down
2 changes: 2 additions & 0 deletions .mock/definition/dataManager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ service:
response:
body:
key: value
audiences:
- internal
api_dm_project_retrieve:
path: /api/dm/project/
method: GET
Expand Down
40 changes: 0 additions & 40 deletions .mock/definition/machineLearning.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .mock/definition/ml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,48 @@ service:
task: 1
audiences:
- public
predict_all_tasks:
path: /api/ml/{id}/predict
method: POST
auth: true
docs: >-
Note: not available in the community edition of Label Studio.


Create predictions for all tasks using a specific ML backend so that you
can set up an active learning strategy based on the confidence or
uncertainty scores associated with the predictions. Creating predictions
requires a Label Studio ML backend set up and configured for your
project.


See [Set up machine learning](https://labelstud.io/guide/ml.html) for
more details about a Label Studio ML backend.


Reference the ML backend ID in the path of this API call. Get the ML
backend ID by [listing the ML backends for a
project](https://labelstud.io/api/#operation/api_ml_list).
source:
openapi: openapi/openapi.yaml
path-parameters:
id:
type: integer
docs: A unique integer value identifying this ML backend.
display-name: Create predictions for all tasks
request:
name: MlPredictAllTasksRequest
query-parameters:
batch_size:
type: optional<integer>
docs: >-
Computed number of tasks without predictions that the ML backend
needs to predict.
examples:
- path-parameters:
id: 1
audiences:
- public
test_predict:
path: /api/ml/{id}/predict/test
method: POST
Expand Down
8 changes: 6 additions & 2 deletions .mock/definition/organizations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ service:
token: token
audiences:
- public
api_organizations_partial_update:
update:
path: /api/organizations/{id}
method: PATCH
auth: true
Expand Down Expand Up @@ -157,7 +157,9 @@ service:
id: 1
title: title
token: token
api_organizations_set_default_role_partial_update:
audiences:
- public
update_default_role:
path: /api/organizations/{id}/set-default-role
method: PATCH
auth: true
Expand Down Expand Up @@ -255,6 +257,8 @@ service:
label_stream_navigation_disabled_at: '2024-01-15T09:30:00Z'
organization: 1
read_only_quick_view_enabled_at: '2024-01-15T09:30:00Z'
audiences:
- public
source:
openapi: openapi/openapi.yaml
types:
Expand Down
33 changes: 25 additions & 8 deletions .mock/definition/projectTemplates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ service:
auth: false
base-path: ''
endpoints:
api_project_templates_list:
list:
path: /api/project-templates/
method: GET
auth: true
Expand All @@ -13,7 +13,7 @@ service:
openapi: openapi/openapi.yaml
display-name: Get project templates
request:
name: ApiProjectTemplatesListRequest
name: ProjectTemplatesListRequest
query-parameters:
ordering:
type: optional<string>
Expand Down Expand Up @@ -42,7 +42,9 @@ service:
tags:
key: value
updated_at: '2024-01-15T09:30:00Z'
api_project_templates_create:
audiences:
- public
create:
path: /api/project-templates/
method: POST
auth: true
Expand All @@ -59,6 +61,7 @@ service:
examples:
- request:
name: name
project_id: 1
response:
body:
assignment_settings:
Expand All @@ -79,7 +82,9 @@ service:
tags:
key: value
updated_at: '2024-01-15T09:30:00Z'
api_project_templates_retrieve:
audiences:
- public
get:
path: /api/project-templates/{id}
method: GET
auth: true
Expand Down Expand Up @@ -115,6 +120,8 @@ service:
tags:
key: value
updated_at: '2024-01-15T09:30:00Z'
audiences:
- public
api_project_templates_update:
path: /api/project-templates/{id}
method: PUT
Expand All @@ -136,6 +143,7 @@ service:
id: 1
request:
name: name
project_id: 1
response:
body:
assignment_settings:
Expand All @@ -156,7 +164,9 @@ service:
tags:
key: value
updated_at: '2024-01-15T09:30:00Z'
api_project_templates_destroy:
audiences:
- internal
delete:
path: /api/project-templates/{id}
method: DELETE
auth: true
Expand All @@ -169,7 +179,9 @@ service:
examples:
- path-parameters:
id: 1
api_project_templates_partial_update:
audiences:
- public
update:
path: /api/project-templates/{id}
method: PATCH
auth: true
Expand Down Expand Up @@ -202,6 +214,7 @@ service:
minLength: 1
maxLength: 1000
organization: optional<integer>
project_id: optional<integer>
project_settings: optional<unknown>
require_comment_on_skip:
type: optional<boolean>
Expand Down Expand Up @@ -237,7 +250,9 @@ service:
tags:
key: value
updated_at: '2024-01-15T09:30:00Z'
api_project_templates_create_project_create:
audiences:
- public
create_project_from_template:
path: /api/project-templates/{id}/create-project
method: POST
auth: true
Expand All @@ -250,7 +265,7 @@ service:
id: integer
display-name: Create project from template
request:
name: ApiProjectTemplatesCreateProjectCreateRequest
name: ProjectTemplatesCreateProjectFromTemplateRequest
body:
properties:
description:
Expand Down Expand Up @@ -367,5 +382,7 @@ service:
useful_annotation_number: 1
workspace: workspace
workspace_title: workspace_title
audiences:
- public
source:
openapi: openapi/openapi.yaml
6 changes: 3 additions & 3 deletions .mock/definition/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ service:
body:
tasks:
- agreement: agreement
agreement_filtered: agreement_filtered
agreement_selected: agreement_selected
annotations: annotations
annotations_ids: annotations_ids
annotations_results: annotations_results
Expand Down Expand Up @@ -330,7 +330,7 @@ service:
response:
body:
agreement: agreement
agreement_filtered: agreement_filtered
agreement_selected: agreement_selected
annotations: annotations
annotations_ids: annotations_ids
annotations_results: annotations_results
Expand Down Expand Up @@ -484,7 +484,7 @@ service:
response:
body:
agreement: agreement
agreement_filtered: agreement_filtered
agreement_selected: agreement_selected
annotations: annotations
annotations_ids: annotations_ids
annotations_results: annotations_results
Expand Down
Loading
Loading