Skip to content

haroonakram/eCopon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eCopon

Competitions & Winners CRUD

REST API from scratch using .NET 6

Overview

In the Project, I build a CRUD REST API from scratch using .NET 6. The backend system supports Creating, Reading, Updating and Deleting Competitions. The backend system supports Creating, Reading, Updating and Deleting Winners. ... more sections are coming in the coming days

API Definition

Competition

Create Competition Request

POST /competition
{
    "name": "Participate and enjoy the match between Saudi and UAE",
    "description": "The purchase condition is not required to enter the competition. The following categories are not allowed to participate in the competition, in order to achieve transparency, and they are: All members of the Jeddah Chamber of Commerce and their families.",
    "startDateTime": "2022-04-08T08:00:00",
    "endDateTime": "2022-04-08T08:00:00",
    "numberofwinners": "120",
    "numberofwithdraws": "330"
}

Get Competition Request

GET /competition/{{id}}

Update Competition Request

PUT /competition/{{id}}

Delete Competition Request

DELETE /competition/{{id}}

Delete Competition Response

204 No Content

Competition Response

200 Ok
Location: {{host}}/Breakfasts/{{id}}
{
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "Participate and enjoy the match between Saudi and UAE",
    "description": "The purchase condition is not required to enter the competition. The following categories are not allowed to participate in the competition, in order to achieve transparency, and they are: All members of the Jeddah Chamber of Commerce and their families.",
    "startDateTime": "2022-04-08T08:00:00",
    "endDateTime": "2022-04-08T08:00:00",
    "numberofwinners": "120",
    "numberofwithdraws": "330"
}

About

Trying to Make eCopon Competitions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages