maps-service/validation/api/docs/SubmissionsApi.md

12 KiB

\SubmissionsApi

All URIs are relative to https://submissions.strafes.net/v1

Method HTTP request Description
action_submission_publish PATCH /submissions/{SubmissionID}/status/publish Role Validator changes status from Publishing -> Published
action_submission_reject PATCH /submissions/{SubmissionID}/status/reject Role Reviewer changes status from Submitted -> Rejected
action_submission_request_changes PATCH /submissions/{SubmissionID}/status/request-changes Role Reviewer changes status from Validated
action_submission_revoke PATCH /submissions/{SubmissionID}/status/revoke Role Submitter changes status from Submitted
action_submission_submit PATCH /submissions/{SubmissionID}/status/submit Role Submitter changes status from UnderConstruction
action_submission_trigger_publish PATCH /submissions/{SubmissionID}/status/trigger-publish Role Admin changes status from Validated -> Publishing
action_submission_trigger_validate PATCH /submissions/{SubmissionID}/status/trigger-validate Role Reviewer triggers validation and changes status from Submitted
action_submission_validate PATCH /submissions/{SubmissionID}/status/validate Role Validator changes status from Validating -> Validated
create_submission POST /submissions Create new submission
get_submission GET /submissions/{SubmissionID} Retrieve map with ID
list_submissions GET /submissions Get list of submissions
patch_submission_completed PATCH /submissions/{SubmissionID}/completed Retrieve map with ID
patch_submission_model PATCH /submissions/{SubmissionID}/model Update model following role restrictions

action_submission_publish

action_submission_publish(submission_id) Role Validator changes status from Publishing -> Published

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

action_submission_reject

action_submission_reject(submission_id) Role Reviewer changes status from Submitted -> Rejected

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

action_submission_request_changes

action_submission_request_changes(submission_id) Role Reviewer changes status from Validated|Accepted|Submitted -> ChangesRequested

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

action_submission_revoke

action_submission_revoke(submission_id) Role Submitter changes status from Submitted|ChangesRequested -> UnderConstruction

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

action_submission_submit

action_submission_submit(submission_id) Role Submitter changes status from UnderConstruction|ChangesRequested -> Submitted

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

action_submission_trigger_publish

action_submission_trigger_publish(submission_id) Role Admin changes status from Validated -> Publishing

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

action_submission_trigger_validate

action_submission_trigger_validate(submission_id) Role Reviewer triggers validation and changes status from Submitted|Accepted -> Validating

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

action_submission_validate

action_submission_validate(submission_id) Role Validator changes status from Validating -> Validated

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_submission

models::Id create_submission(submission_create) Create new submission

Parameters

Name Type Description Required Notes
submission_create Option<SubmissionCreate>

Return type

models::Id

Authorization

cookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_submission

models::Submission get_submission(submission_id) Retrieve map with ID

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

models::Submission

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_submissions

Vecmodels::Submission list_submissions(page, filter) Get list of submissions

Parameters

Name Type Description Required Notes
page Pagination [required]
filter Option<SubmissionFilter>

Return type

Vecmodels::Submission

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

patch_submission_completed

patch_submission_completed(submission_id) Retrieve map with ID

Parameters

Name Type Description Required Notes
submission_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

patch_submission_model

patch_submission_model(submission_id, model_id, version_id) Update model following role restrictions

Parameters

Name Type Description Required Notes
submission_id i64 [required]
model_id i64 [required]
version_id i64 [required]

Return type

(empty response body)

Authorization

cookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]