Web: Create Submission #1

Closed
opened 2024-12-14 05:27:27 +00:00 by Quaternions · 1 comment
Owner

The website needs a page to create a new submission.

The page is essentially a form, with fields matching the SubmissionCreate data structure on the openapi spec:

openapi.yaml Lines 622 to 629 in 2fa3a2d74d
SubmissionCreate:
required:
- DisplayName
- Creator
- GameID
- AssetID
- AssetVersion
# - TargetAssetID

TargetAssetID is an optional field, when it is supplied the submission is interpreted as a "Map Fix", when it is not supplied, the value is set to 0 and the submission is interpreted as a "New Map"

The data is then json encoded and sent to the POST /submissions endpoint

The website needs a page to create a new submission. The page is essentially a form, with fields matching the [SubmissionCreate](https://git.itzana.me/StrafesNET/maps-service/src/commit/2fa3a2d74d74ef9f7edbb79f5f2c1a8e2e2cc709/openapi.yaml#L622) data structure on the openapi spec: https://git.itzana.me/StrafesNET/maps-service/src/commit/2fa3a2d74d74ef9f7edbb79f5f2c1a8e2e2cc709/openapi.yaml#L622-L629 TargetAssetID is an optional field, when it is supplied the submission is interpreted as a "Map Fix", when it is not supplied, the value is set to 0 and the submission is interpreted as a "New Map" The data is then json encoded and sent to the [`POST /submissions`](https://git.itzana.me/StrafesNET/maps-service/src/commit/2fa3a2d74d74ef9f7edbb79f5f2c1a8e2e2cc709/openapi.yaml#L50) endpoint
Author
Owner

This page reasonably exists, additional issues with it can be opened separately.

This page reasonably exists, additional issues with it can be opened separately.
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: StrafesNET/maps-service#1
No description provided.