Skip to content

shohnn/SheriffAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  1. .Net Core 3.1
  2. SQL Server

Setup Environment

  1. (We run SQL Server from a Docker image)

    • docker pull mcr.microsoft.com/mssql/server:2017-CU18-ubuntu-16.04
    • docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=p455w0rD!.' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-CU18-ubuntu-16.04
  2. Restore packages

    • dotnet restore

Build

  1. Run migrations

    • dotnet ef database update --startup-project ./src/Sheriff.WebApi/Sheriff.WebApi.csproj --project ./src/Sheriff.Infrastructure/Sheriff.Infrastructure.csproj
  2. Build solution

    • dotnet build

Run and Test

  1. Run WebApi
    • dotnet run --project ./src/Sheriff.WebApi/Sheriff.WebApi.csproj;

Endpoints

  1. Band Details

  2. Bands List

  3. Bandit Bands List

  4. Bandit Details

  5. Bandits List

  6. Create Band

  7. Create Bandit

  8. Create Round:

    • Endpoint: POST https://localhost:5001/rounds
    • Payload: { "Name": "{Round Name}", "Place": "{Round Place", "DateTime": "{yyyy-mm-dd}", "Sheriff": { "Id": {sheriffId} }, "Members": [ { "Id": {memberId} }, { "Id": {memberId} }, ], "Band": { "Id": {bandId} } }
  9. Invite Join Band

  10. Request Join Band

  11. Notifications List

  12. Read Notification

  13. Invitations List

  14. Handle Invitation

  15. Invite Join App

  16. Score Round

    • Endpoint: https://localhost:5001/rounds/score
    • Payload: { "Round": { "Id": {roundId} }, "Member": { "Id": {banditId} }, "Score": { "LootSize": {lootSize}, "LootValue": {lootValue}, "Service": {servic}, "Price": {price} } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages