Giter Site home page Giter Site logo

footballrest's Introduction

1. Get all players.
Get Json with all players with basic information
https://localhost:5001/api/players

2. Get single player.
Get Json with one player with detailed information
https://localhost:5001/api/players/1

3. Post Create player.
Post Json with player properties. Adds player to database,
https://localhost:5001/api/player
{
    "name": "Thomas",
    "number": 1,
    "age": 28,
    "height": 190,
    "TeamId": 2
}

4. Put update player properties.
Put Json with player properties. Updates player in database
https://localhost:44389/api/players/106
{
    "name": "Thomas Lastname"
}

5. Delete delete player.
Deletes player from the database
https://localhost:44389/api/players/15

6. Put add player to a team.
Put Json with PlayerId and TeamId properties. Adds player to Team.
https://localhost:5001/api/PlayersAddToTeam
{
    "PlayerId": 105,
    "TeamId": 3
}

7. Put removes player from team.
Put Sets TeamId key to 1 (reserved for "NoTeamPlayers")
https://localhost:44389/api/PlayersRemoveFromTeam/1

8. Get all teams.
Get Json with all teams with basic information
https://localhost:5001/api/teams

9. Get single team.
Get Json with Single teams with basic information and listed all players
https://localhost:5001/api/teams/1















footballrest's People

Contributors

michalliwandowski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.