Web: Create Submission #1

Open
opened 2024-12-14 05:27:27 +00:00 by Quaternions · 0 comments
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
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

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