Skip to content

Commit 864d4c1

Browse files
committed
Assignments endpoint + photos on identification tasks
1 parent 835c60d commit 864d4c1

File tree

40 files changed

+1417
-1056
lines changed

40 files changed

+1417
-1056
lines changed

.openapi-generator/FILES

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,19 @@ docs/IdentificationtasksAnnotationsCreateValidationError.md
229229
docs/IdentificationtasksAnnotationsListClassificationConfidenceErrorComponent.md
230230
docs/IdentificationtasksAnnotationsListClassificationConfidenceLabelErrorComponent.md
231231
docs/IdentificationtasksAnnotationsListClassificationTaxonIdsErrorComponent.md
232+
docs/IdentificationtasksAnnotationsListCreatedAtErrorComponent.md
232233
docs/IdentificationtasksAnnotationsListError.md
233234
docs/IdentificationtasksAnnotationsListMineClassificationConfidenceErrorComponent.md
234235
docs/IdentificationtasksAnnotationsListMineClassificationConfidenceLabelErrorComponent.md
235236
docs/IdentificationtasksAnnotationsListMineClassificationTaxonIdsErrorComponent.md
237+
docs/IdentificationtasksAnnotationsListMineCreatedAtErrorComponent.md
236238
docs/IdentificationtasksAnnotationsListMineError.md
237239
docs/IdentificationtasksAnnotationsListMineOrderByErrorComponent.md
240+
docs/IdentificationtasksAnnotationsListMineUpdatedAtErrorComponent.md
238241
docs/IdentificationtasksAnnotationsListMineUserIdsErrorComponent.md
239242
docs/IdentificationtasksAnnotationsListMineValidationError.md
240243
docs/IdentificationtasksAnnotationsListOrderByErrorComponent.md
244+
docs/IdentificationtasksAnnotationsListUpdatedAtErrorComponent.md
241245
docs/IdentificationtasksAnnotationsListUserIdsErrorComponent.md
242246
docs/IdentificationtasksAnnotationsListValidationError.md
243247
docs/IdentificationtasksListAnnotatorIdsErrorComponent.md
@@ -484,7 +488,6 @@ docs/PaginatedNotificationList.md
484488
docs/PaginatedObservationList.md
485489
docs/PaginatedPartnerList.md
486490
docs/PaginatedPhotoPredictionList.md
487-
docs/PaginatedSimplePhotoList.md
488491
docs/PaginatedTaxonList.md
489492
docs/Partner.md
490493
docs/PartnersApi.md
@@ -552,7 +555,7 @@ docs/SimplePhotoRequest.md
552555
docs/SimpleTaxon.md
553556
docs/SimpleTaxonRequest.md
554557
docs/SimplifiedLocation.md
555-
docs/SimplifiedObservation.md
558+
docs/SimplifiedObservationWithPhotos.md
556559
docs/TaxaApi.md
557560
docs/TaxaListError.md
558561
docs/TaxaListValidationError.md
@@ -563,6 +566,7 @@ docs/TokenRefreshRequest.md
563566
docs/TokenVerifyRequest.md
564567
docs/TopicNotificationCreateRequest.md
565568
docs/User.md
569+
docs/UserAssignment.md
566570
docs/UserNotificationCreateRequest.md
567571
docs/UserRequest.md
568572
docs/UserScore.md
@@ -815,15 +819,19 @@ mosquito_alert/models/identificationtasks_annotations_create_validation_error.py
815819
mosquito_alert/models/identificationtasks_annotations_list_classification_confidence_error_component.py
816820
mosquito_alert/models/identificationtasks_annotations_list_classification_confidence_label_error_component.py
817821
mosquito_alert/models/identificationtasks_annotations_list_classification_taxon_ids_error_component.py
822+
mosquito_alert/models/identificationtasks_annotations_list_created_at_error_component.py
818823
mosquito_alert/models/identificationtasks_annotations_list_error.py
819824
mosquito_alert/models/identificationtasks_annotations_list_mine_classification_confidence_error_component.py
820825
mosquito_alert/models/identificationtasks_annotations_list_mine_classification_confidence_label_error_component.py
821826
mosquito_alert/models/identificationtasks_annotations_list_mine_classification_taxon_ids_error_component.py
827+
mosquito_alert/models/identificationtasks_annotations_list_mine_created_at_error_component.py
822828
mosquito_alert/models/identificationtasks_annotations_list_mine_error.py
823829
mosquito_alert/models/identificationtasks_annotations_list_mine_order_by_error_component.py
830+
mosquito_alert/models/identificationtasks_annotations_list_mine_updated_at_error_component.py
824831
mosquito_alert/models/identificationtasks_annotations_list_mine_user_ids_error_component.py
825832
mosquito_alert/models/identificationtasks_annotations_list_mine_validation_error.py
826833
mosquito_alert/models/identificationtasks_annotations_list_order_by_error_component.py
834+
mosquito_alert/models/identificationtasks_annotations_list_updated_at_error_component.py
827835
mosquito_alert/models/identificationtasks_annotations_list_user_ids_error_component.py
828836
mosquito_alert/models/identificationtasks_annotations_list_validation_error.py
829837
mosquito_alert/models/identificationtasks_list_annotator_ids_error_component.py
@@ -1068,7 +1076,6 @@ mosquito_alert/models/paginated_notification_list.py
10681076
mosquito_alert/models/paginated_observation_list.py
10691077
mosquito_alert/models/paginated_partner_list.py
10701078
mosquito_alert/models/paginated_photo_prediction_list.py
1071-
mosquito_alert/models/paginated_simple_photo_list.py
10721079
mosquito_alert/models/paginated_taxon_list.py
10731080
mosquito_alert/models/partner.py
10741081
mosquito_alert/models/password_change_request.py
@@ -1134,7 +1141,7 @@ mosquito_alert/models/simple_photo_request.py
11341141
mosquito_alert/models/simple_taxon.py
11351142
mosquito_alert/models/simple_taxon_request.py
11361143
mosquito_alert/models/simplified_location.py
1137-
mosquito_alert/models/simplified_observation.py
1144+
mosquito_alert/models/simplified_observation_with_photos.py
11381145
mosquito_alert/models/taxa_list_error.py
11391146
mosquito_alert/models/taxa_list_validation_error.py
11401147
mosquito_alert/models/taxon.py
@@ -1144,6 +1151,7 @@ mosquito_alert/models/token_refresh_request.py
11441151
mosquito_alert/models/token_verify_request.py
11451152
mosquito_alert/models/topic_notification_create_request.py
11461153
mosquito_alert/models/user.py
1154+
mosquito_alert/models/user_assignment.py
11471155
mosquito_alert/models/user_notification_create_request.py
11481156
mosquito_alert/models/user_request.py
11491157
mosquito_alert/models/user_score.py
@@ -1389,15 +1397,19 @@ test/test_identificationtasks_annotations_create_validation_error.py
13891397
test/test_identificationtasks_annotations_list_classification_confidence_error_component.py
13901398
test/test_identificationtasks_annotations_list_classification_confidence_label_error_component.py
13911399
test/test_identificationtasks_annotations_list_classification_taxon_ids_error_component.py
1400+
test/test_identificationtasks_annotations_list_created_at_error_component.py
13921401
test/test_identificationtasks_annotations_list_error.py
13931402
test/test_identificationtasks_annotations_list_mine_classification_confidence_error_component.py
13941403
test/test_identificationtasks_annotations_list_mine_classification_confidence_label_error_component.py
13951404
test/test_identificationtasks_annotations_list_mine_classification_taxon_ids_error_component.py
1405+
test/test_identificationtasks_annotations_list_mine_created_at_error_component.py
13961406
test/test_identificationtasks_annotations_list_mine_error.py
13971407
test/test_identificationtasks_annotations_list_mine_order_by_error_component.py
1408+
test/test_identificationtasks_annotations_list_mine_updated_at_error_component.py
13981409
test/test_identificationtasks_annotations_list_mine_user_ids_error_component.py
13991410
test/test_identificationtasks_annotations_list_mine_validation_error.py
14001411
test/test_identificationtasks_annotations_list_order_by_error_component.py
1412+
test/test_identificationtasks_annotations_list_updated_at_error_component.py
14011413
test/test_identificationtasks_annotations_list_user_ids_error_component.py
14021414
test/test_identificationtasks_annotations_list_validation_error.py
14031415
test/test_identificationtasks_list_annotator_ids_error_component.py
@@ -1644,7 +1656,6 @@ test/test_paginated_notification_list.py
16441656
test/test_paginated_observation_list.py
16451657
test/test_paginated_partner_list.py
16461658
test/test_paginated_photo_prediction_list.py
1647-
test/test_paginated_simple_photo_list.py
16481659
test/test_paginated_taxon_list.py
16491660
test/test_partner.py
16501661
test/test_partners_api.py
@@ -1712,7 +1723,7 @@ test/test_simple_photo_request.py
17121723
test/test_simple_taxon.py
17131724
test/test_simple_taxon_request.py
17141725
test/test_simplified_location.py
1715-
test/test_simplified_observation.py
1726+
test/test_simplified_observation_with_photos.py
17161727
test/test_taxa_api.py
17171728
test/test_taxa_list_error.py
17181729
test/test_taxa_list_validation_error.py
@@ -1723,6 +1734,7 @@ test/test_token_refresh_request.py
17231734
test/test_token_verify_request.py
17241735
test/test_topic_notification_create_request.py
17251736
test/test_user.py
1737+
test/test_user_assignment.py
17261738
test/test_user_notification_create_request.py
17271739
test/test_user_request.py
17281740
test/test_user_score.py

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Introducing API v1 for Mosquito Alert platform, a project desgined to facilitate
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: v1
7-
- Package version: 0.1.8
7+
- Package version: 0.1.9
88
- Generator version: 7.12.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

@@ -131,11 +131,9 @@ Class | Method | HTTP request | Description
131131
*IdentificationTasksApi* | [**annotations_list**](docs/IdentificationTasksApi.md#annotations_list) | **GET** /identification-tasks/{observation_uuid}/annotations/ |
132132
*IdentificationTasksApi* | [**annotations_list_mine**](docs/IdentificationTasksApi.md#annotations_list_mine) | **GET** /me/identification-tasks/annotations/ |
133133
*IdentificationTasksApi* | [**annotations_retrieve**](docs/IdentificationTasksApi.md#annotations_retrieve) | **GET** /identification-tasks/{observation_uuid}/annotations/{id}/ |
134-
*IdentificationTasksApi* | [**assign_new**](docs/IdentificationTasksApi.md#assign_new) | **POST** /identification-tasks/assign/ |
134+
*IdentificationTasksApi* | [**assign_next**](docs/IdentificationTasksApi.md#assign_next) | **POST** /identification-tasks/assignments/next/ |
135135
*IdentificationTasksApi* | [**list**](docs/IdentificationTasksApi.md#list) | **GET** /identification-tasks/ |
136136
*IdentificationTasksApi* | [**list_mine**](docs/IdentificationTasksApi.md#list_mine) | **GET** /me/identification-tasks/ |
137-
*IdentificationTasksApi* | [**photos_list**](docs/IdentificationTasksApi.md#photos_list) | **GET** /identification-tasks/{observation_uuid}/photos/ |
138-
*IdentificationTasksApi* | [**photos_retrieve**](docs/IdentificationTasksApi.md#photos_retrieve) | **GET** /identification-tasks/{observation_uuid}/photos/{uuid}/ |
139137
*IdentificationTasksApi* | [**predictions_create**](docs/IdentificationTasksApi.md#predictions_create) | **POST** /identification-tasks/{observation_uuid}/predictions/ |
140138
*IdentificationTasksApi* | [**predictions_destroy**](docs/IdentificationTasksApi.md#predictions_destroy) | **DELETE** /identification-tasks/{observation_uuid}/predictions/{photo_uuid}/ |
141139
*IdentificationTasksApi* | [**predictions_list**](docs/IdentificationTasksApi.md#predictions_list) | **GET** /identification-tasks/{observation_uuid}/predictions/ |
@@ -391,15 +389,19 @@ Class | Method | HTTP request | Description
391389
- [IdentificationtasksAnnotationsListClassificationConfidenceErrorComponent](docs/IdentificationtasksAnnotationsListClassificationConfidenceErrorComponent.md)
392390
- [IdentificationtasksAnnotationsListClassificationConfidenceLabelErrorComponent](docs/IdentificationtasksAnnotationsListClassificationConfidenceLabelErrorComponent.md)
393391
- [IdentificationtasksAnnotationsListClassificationTaxonIdsErrorComponent](docs/IdentificationtasksAnnotationsListClassificationTaxonIdsErrorComponent.md)
392+
- [IdentificationtasksAnnotationsListCreatedAtErrorComponent](docs/IdentificationtasksAnnotationsListCreatedAtErrorComponent.md)
394393
- [IdentificationtasksAnnotationsListError](docs/IdentificationtasksAnnotationsListError.md)
395394
- [IdentificationtasksAnnotationsListMineClassificationConfidenceErrorComponent](docs/IdentificationtasksAnnotationsListMineClassificationConfidenceErrorComponent.md)
396395
- [IdentificationtasksAnnotationsListMineClassificationConfidenceLabelErrorComponent](docs/IdentificationtasksAnnotationsListMineClassificationConfidenceLabelErrorComponent.md)
397396
- [IdentificationtasksAnnotationsListMineClassificationTaxonIdsErrorComponent](docs/IdentificationtasksAnnotationsListMineClassificationTaxonIdsErrorComponent.md)
397+
- [IdentificationtasksAnnotationsListMineCreatedAtErrorComponent](docs/IdentificationtasksAnnotationsListMineCreatedAtErrorComponent.md)
398398
- [IdentificationtasksAnnotationsListMineError](docs/IdentificationtasksAnnotationsListMineError.md)
399399
- [IdentificationtasksAnnotationsListMineOrderByErrorComponent](docs/IdentificationtasksAnnotationsListMineOrderByErrorComponent.md)
400+
- [IdentificationtasksAnnotationsListMineUpdatedAtErrorComponent](docs/IdentificationtasksAnnotationsListMineUpdatedAtErrorComponent.md)
400401
- [IdentificationtasksAnnotationsListMineUserIdsErrorComponent](docs/IdentificationtasksAnnotationsListMineUserIdsErrorComponent.md)
401402
- [IdentificationtasksAnnotationsListMineValidationError](docs/IdentificationtasksAnnotationsListMineValidationError.md)
402403
- [IdentificationtasksAnnotationsListOrderByErrorComponent](docs/IdentificationtasksAnnotationsListOrderByErrorComponent.md)
404+
- [IdentificationtasksAnnotationsListUpdatedAtErrorComponent](docs/IdentificationtasksAnnotationsListUpdatedAtErrorComponent.md)
403405
- [IdentificationtasksAnnotationsListUserIdsErrorComponent](docs/IdentificationtasksAnnotationsListUserIdsErrorComponent.md)
404406
- [IdentificationtasksAnnotationsListValidationError](docs/IdentificationtasksAnnotationsListValidationError.md)
405407
- [IdentificationtasksListAnnotatorIdsErrorComponent](docs/IdentificationtasksListAnnotatorIdsErrorComponent.md)
@@ -644,7 +646,6 @@ Class | Method | HTTP request | Description
644646
- [PaginatedObservationList](docs/PaginatedObservationList.md)
645647
- [PaginatedPartnerList](docs/PaginatedPartnerList.md)
646648
- [PaginatedPhotoPredictionList](docs/PaginatedPhotoPredictionList.md)
647-
- [PaginatedSimplePhotoList](docs/PaginatedSimplePhotoList.md)
648649
- [PaginatedTaxonList](docs/PaginatedTaxonList.md)
649650
- [Partner](docs/Partner.md)
650651
- [PasswordChangeRequest](docs/PasswordChangeRequest.md)
@@ -710,7 +711,7 @@ Class | Method | HTTP request | Description
710711
- [SimpleTaxon](docs/SimpleTaxon.md)
711712
- [SimpleTaxonRequest](docs/SimpleTaxonRequest.md)
712713
- [SimplifiedLocation](docs/SimplifiedLocation.md)
713-
- [SimplifiedObservation](docs/SimplifiedObservation.md)
714+
- [SimplifiedObservationWithPhotos](docs/SimplifiedObservationWithPhotos.md)
714715
- [TaxaListError](docs/TaxaListError.md)
715716
- [TaxaListValidationError](docs/TaxaListValidationError.md)
716717
- [Taxon](docs/Taxon.md)
@@ -720,6 +721,7 @@ Class | Method | HTTP request | Description
720721
- [TokenVerifyRequest](docs/TokenVerifyRequest.md)
721722
- [TopicNotificationCreateRequest](docs/TopicNotificationCreateRequest.md)
722723
- [User](docs/User.md)
724+
- [UserAssignment](docs/UserAssignment.md)
723725
- [UserNotificationCreateRequest](docs/UserNotificationCreateRequest.md)
724726
- [UserRequest](docs/UserRequest.md)
725727
- [UserScore](docs/UserScore.md)

docs/Assignment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**user** | [**SimpleAnnotatorUser**](SimpleAnnotatorUser.md) | |
9-
**annotation_id** | **int** | | [readonly]
8+
**observation** | [**SimplifiedObservationWithPhotos**](SimplifiedObservationWithPhotos.md) | | [readonly]
9+
**annotation_type** | **str** | | [readonly]
1010

1111
## Example
1212

docs/IdentificationTask.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**observation** | [**SimplifiedObservation**](SimplifiedObservation.md) | | [readonly]
8+
**observation** | [**SimplifiedObservationWithPhotos**](SimplifiedObservationWithPhotos.md) | | [readonly]
99
**public_photo** | [**SimplePhoto**](SimplePhoto.md) | |
10-
**assignments** | [**List[Assignment]**](Assignment.md) | | [readonly]
10+
**assignments** | [**List[UserAssignment]**](UserAssignment.md) | | [readonly]
1111
**status** | **str** | | [optional] [default to 'open']
1212
**is_flagged** | **bool** | | [readonly]
1313
**is_safe** | **bool** | Indicates if the content is safe for publication. | [readonly]

0 commit comments

Comments
 (0)