Public api: /map/ doesn't provide which modes a map supports #223

Closed
opened 2025-07-05 01:50:21 +00:00 by fiveman1 · 2 comments
Member

StrafesNET/public-api#9

There isn't a way to tell how many bonuses a map has. Ideally the API would provide a list of mode_id's for each map.

https://git.itzana.me/StrafesNET/public-api/issues/9 There isn't a way to tell how many bonuses a map has. Ideally the API would provide a list of mode_id's for each map.
Owner

The backend does not track this, the modes are associated to individual times.

A full solution would look like this:

  • Master maps list migration to maps-service #203 is completed
  • Modes / BonusCount field is added to model/map.go
  • Modes / BonusCount field is added to model/submission.go
  • Create operation: Validator extracts modes, probably changing ModelInfo struct to include modes
  • Submit operation: Validator runs sequential modes check in checks.rs, submission.modes is updated
  • Release operation: backend submissions.go ReleaseSubmissions function creates master maps list entry by copying fields from submission
The backend does not track this, the modes are associated to individual times. A full solution would look like this: - Master maps list migration to maps-service #203 is completed - Modes / BonusCount field is added to `model/map.go` - Modes / BonusCount field is added to `model/submission.go` - Create operation: Validator extracts modes, probably changing `ModelInfo` struct to include modes - Submit operation: Validator runs sequential modes check in `checks.rs`, submission.modes is updated - Release operation: backend `submissions.go` `ReleaseSubmissions` function creates master maps list entry by copying fields from submission
Quaternions added the backendenhancementvalidator labels 2025-07-05 15:57:22 +00:00
Quaternions added a new dependency 2025-07-26 05:12:01 +00:00
Owner

This is now available from https://maps.strafes.net/public-api
Additionally, all maps have been checked to have sequential modes, and new maps are also validated as such.

This is now available from https://maps.strafes.net/public-api Additionally, all maps have been checked to have sequential modes, and new maps are also validated as such.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Depends on
#229 Add public api support
StrafesNET/maps-service
Reference: StrafesNET/maps-service#223