Skip to content

API Documentation

Axtux edited this page Jul 29, 2019 · 1 revision

API Documentation

Info

This page will help you to understand how the Switch API works.

Methods

User Methods

Get top 10 users

Returns the 10 users with the most points out of the user database.

GET http://localhost:3000/users/top10users

User login

Serves as user authentication.

We are not using login credentials as authentication, we are instead creating a token client-side when a new user is created You can see the code for token validation here.

GET http://localhost:3000/users/login
Clone this wiki locally