Skip to content

radude89/footballgather-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Football Gather - Server Side

Vapor 4 Swift 5.2

FootballGather is a demo project for friends to get together and play football matches as quick as possible. My intention is to to try out different iOS Architecture Patterns and use server side Swift (Vapor this time).

This repo contains the server side logic. For the iOS version, please check Football Gather - iOS Side.

Features

  • Ability to add players
  • Set countdown timer for matches
  • Use the application in offline mode
  • Persist players

Database Structure

FootballGather-db-diagram

API

User Endpoints

Method Endpoint Description
GET /api/users Gets the list of users
GET /api/users/{userId} Gets the specified user by its id
POST /api/users Creates a new user
POST /api/users/login Logins a user and returns the token
DELETE /api/users Deletes the logged in user

Player Endpoints

Method Endpoint Description
POST /api/players Creates a new player
DELETE /api/players/{playerId} Deletes a player by its id
PUT /api/players/{playerId} Updates a player by its id
GET /api/players/{playerId}/gathers Gets the list of gathers for the player
GET /api/players Gets the list of players

Gather Endpoints

Method Endpoint Description
GET /api/gathers Gets the list of gathers
POST /api/gathers Creates a new gather
DELETE /api/gathers/{gatherId} Deletes a gather by its id
PUT /api/gathers/{gatherId} Updates a gather by its id
POST /api/gathers/{gatherId}/players/{playerId} Adds a player to a gather
GET /api/gathers/{gatherId}/players Gets the list of players in the gather

Author

You can reach out to me on my website or find me on GitHub radude89.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors