A Rest API made with ASP.NET Core + SQL Server to the My Games List app.
Version : v1
Contact : Samuel Alves
POST /api/Game
Request example:
POST /game
{
"steamAppid": 1102,
"title": "Half-Life",
"shortDescription": "The best game ever.",
"detailedDescription": "Half-life is the best game ever...",
"headerImage": "https://steamcdn-a.akamaihd.net/steam/apps/1102/header.jpg",
"price": 25.90
}
Type | Name | Schema |
---|---|---|
Body | game optional |
Game |
HTTP Code | Description | Schema |
---|---|---|
201 | Returns the Game created | Game |
400 | The Game passed is null | No Content |
application/json-patch+json
application/json
text/json
application/*+json
application/json
- Game
GET /api/Game
HTTP Code | Description | Schema |
---|---|---|
200 | Success | < Game > array |
application/json
- Game
GET /api/Game/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 | Returns the expected Game | Game |
404 | If no Game with the same id was found | No Content |
application/json
- Game
PUT /api/Game/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
Body | game optional |
Game |
HTTP Code | Description | Schema |
---|---|---|
204 | Updated with success | No Content |
400 | If the Game passed is null or its id is different from the one passed on the url. | No Content |
404 | If no Game with the same id was found | No Content |
application/json-patch+json
application/json
text/json
application/*+json
- Game
DELETE /api/Game/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
204 | If no Game item with the same id was found | No Content |
400 | Deleted with success | No Content |
- Game
POST /api/OwnedGame
Type | Name | Schema |
---|---|---|
Body | game optional |
OwnedGame |
HTTP Code | Description | Schema |
---|---|---|
201 | Returns the OwnedGame created | OwnedGame |
400 | If the OwnedGame is null | No Content |
application/json-patch+json
application/json
text/json
application/*+json
application/json
- OwnedGame
GET /api/OwnedGame
HTTP Code | Description | Schema |
---|---|---|
200 | Success | < OwnedGame > array |
application/json
- OwnedGame
GET /api/OwnedGame/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 | Returns the expected OwnedGame | OwnedGame |
404 | If no OwnedGame with the same id was found | No Content |
application/json
- OwnedGame
PUT /api/OwnedGame/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
Body | game optional |
OwnedGame |
HTTP Code | Description | Schema |
---|---|---|
204 | Updated with success | No Content |
400 | If the OwnedGame passed is null or its id is different from the one passed on the url. | No Content |
404 | If no OwnedGame with the same id was found | No Content |
application/json-patch+json
application/json
text/json
application/*+json
- OwnedGame
DELETE /api/OwnedGame/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
204 | Deleted with success | No Content |
404 | If no OwnedGame with the same id was found | No Content |
- OwnedGame
POST /api/User
Type | Name | Schema |
---|---|---|
Body | user optional |
User |
HTTP Code | Description | Schema |
---|---|---|
201 | Returns the User created | User |
400 | If the User is null | No Content |
application/json-patch+json
application/json
text/json
application/*+json
application/json
- User
GET /api/User
HTTP Code | Description | Schema |
---|---|---|
200 | Success | < User > array |
application/json
- User
GET /api/User/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 | Returns the expected User | User |
404 | If no User with the same id was found | No Content |
application/json
- User
PUT /api/User/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
Body | user optional |
User |
HTTP Code | Description | Schema |
---|---|---|
204 | Updated with success | No Content |
400 | If the User passed is null or its id is different from the one passed on the url. | No Content |
404 | If no User with the same id was found | No Content |
application/json-patch+json
application/json
text/json
application/*+json
- User
DELETE /api/User/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
204 | Deleted with success | No Content |
404 | If no User with the same id was found | No Content |
- User
POST /api/WishlistItem
Type | Name | Schema |
---|---|---|
Body | item optional |
WishlistItem |
HTTP Code | Description | Schema |
---|---|---|
201 | Returns the WishlistItem created | WishlistItem |
400 | If the WishlistItem is null | No Content |
application/json-patch+json
application/json
text/json
application/*+json
application/json
- WishlistItem
GET /api/WishlistItem
HTTP Code | Description | Schema |
---|---|---|
200 | Success | < WishlistItem > array |
application/json
- WishlistItem
GET /api/WishlistItem/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 | Returns the expected WishlistItem | WishlistItem |
404 | If no WishlistItem with the same id was found | No Content |
application/json
- WishlistItem
PUT /api/WishlistItem/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
Body | item optional |
WishlistItem |
HTTP Code | Description | Schema |
---|---|---|
204 | Updated with success | No Content |
400 | If the WishlistItem passed is null or its id is different from the one passed on the url. | No Content |
404 | If no WishlistItem with the same id was found | No Content |
application/json-patch+json
application/json
text/json
application/*+json
- WishlistItem
DELETE /api/WishlistItem/{id}
Type | Name | Schema |
---|---|---|
Path | id required |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
204 | Deleted with success | No Content |
404 | If no WishlistItem with the same id was found | No Content |
- WishlistItem
Name | Description | Schema |
---|---|---|
detailedDescription optional |
Length : 0 - 3000 |
string |
headerImage optional |
Length : 0 - 300 |
string |
id optional |
integer (int64) | |
price optional |
number (double) | |
shortDescription optional |
Length : 0 - 500 |
string |
steamAppid optional |
integer (int64) | |
title required |
Length : 0 - 300 |
string |
Name | Schema |
---|---|
game required |
Game |
id optional |
integer (int64) |
playtimeForever optional |
integer (int64) |
playtimeTwoWeeks optional |
integer (int64) |
Name | Description | Schema |
---|---|---|
email required |
Length : 0 - 250 |
string |
id optional |
integer (int64) | |
name required |
Length : 0 - 250 |
string |
ownedGames optional |
< OwnedGame > array | |
wishlist optional |
< WishlistItem > array |
Name | Schema |
---|---|
game required |
Game |
id optional |
integer (int64) |
rankPosition optional |
integer (int32) |