Skip to content

Revamp scores #607

@RyanTG

Description

@RyanTG

Working currently ongoing. pinballmap/pbm#1692

  • Show highest score list on profile
  • other stuff that I'll add...

Documenting API changes:

/api/v1/location_machine_xrefs/:id.json
?user_id=0 when not logged in and ?user_id=actual id when logged in

if logged in and has score, then also include:
/api/v1/machine_score_xrefs/high.json?by_machine_id=xx;by_user_id=xx

/api/v1/user_submissions/location.json
/api/v1/user_submissions/list_within_range.json
user_id
restrict_to

Example: http://localhost:3000/api/v1/user_submissions/location.json?id=16910;user_id=2;restrict_to=new_msx;submission_type[]=add_location;submission_type[]=new_lmx;submission_type[]=remove_machine;submission_type[]=new_condition;submission_type[]=confirm_location;submission_type[]=new_msx

/api/v1/users/:id/profile_info.json
new_score_list_only
"profile_list_of_high_scores"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions