Body: application/json
{
"username": "string",
"password": "string"
}
{
"id": "Number",
"username": "string",
"email": "string"
}
Body: application/json
{
"id": "Number",
"username": "string",
"email": "string"
}
{
"id": "Number",
"username": "string",
"email": "string"
}
Response:
{
"id": "Number",
"username": "string",
"email": "string"
}
get all auctions
Response:
[
{
"id": "Number",
"title": "string",
"description": "string",
"startPrice": "Number",
"status": "OPEN/NOT_SOLD/SOLD",
"endDate": "Date",
"host": {
"id": "Number",
"username": "string"
},
"winner": {
"id": "Number",
"username": "string"
},
"categories": [
{
"id": "Number",
"name": "string"
}
],
"bids": [
{
"id": "Number",
"user": {
"id": "Number",
"username": "string"
}
}
],
"images": [
{
"id": "Number",
"path": "string",
"auction": {
"id": "Number"
}
}
]
}
]
get specific auction by id
Response:
{
"id": "Number",
"title": "string",
"description": "string",
"startPrice": "Number",
"status": "OPEN/NOT_SOLD/SOLD",
"endDate": "Date",
"host": {
"id": "Number",
"username": "string"
},
"winner": {
"id": "Number",
"username": "string"
},
"categories": [
{
"id": "Number",
"name": "string"
}
],
"bids": [
{
"id": "Number",
"user": {
"id": "Number",
"username": "string"
}
}
],
"images": [
{
"id": "Number",
"path": "string",
"auction": {
"id": "Number"
}
}
]
}
create an auction
Body: formdata
auction:
{
"title": "string",
"description": "string",
"startPrice": "Number",
"endDate": "Date",
}
),
categories:
[
{
"id": "Number",
"name": "string"
}
]
),
files: List<MultipartFile> files
Response:
{
"id": "Number",
"title": "string",
"description": "string",
"startPrice": "Number",
"status": "OPEN",
"endDate": "Date",
"host": {
"id": "Number",
"username": "string"
},
"winner": {
"id": "Number",
"username": "string"
},
"categories": [
{
"id": "Number",
"name": "string"
}
],
"bids": [],
"images": []
}
get all auctions for current user
Response:
[
{
"id": "Number",
"title": "string",
"description": "string",
"startPrice": "Number",
"status": "string",
"endDate": "Date",
"host": {
"id": "Number",
"username": "string"
},
"winner": {
"id": "Number",
"username": "string"
},
"categories": [
{
"id": "Number",
"name": "string"
}
],
"bids": [
{
"id": "Number",
"user": {
"id": "Number",
"username": "string"
}
}
],
"images": [
{
"id": "Number",
"path": "string",
"auction": {
"id": "Number"
}
}
]
}
]
get won auctions for current user
Response:
[
{
"id": "Number",
"title": "string",
"description": "string",
"startPrice": "Number",
"status": "OPEN/NOT_SOLD/SOLD",
"endDate": "Date",
"host": {
"id": "Number",
"username": "string"
},
"winner": {
"id": "Number",
"username": "string"
},
"categories": [
{
"id": "Number",
"name": "string"
}
],
"bids": [
{
"id": "Number",
"user": {
"id": "Number",
"username": "string"
}
}
],
"images": [
{
"id": "Number",
"path": "string",
"auction": {
"id": "Number"
}
}
]
}
]
create a bid
Body: application/json
{
"userId": "Number",
"auctionId": "Number",
"price": "number",
"createdDate": "Date"
}
{
"id": "Number",
"user": {
"id": "Number",
"username": "string",
},
"auction": {
"id": "Number",
"title": "string",
"description": "string",
"startPrice": "Number",
"status": "string",
"endDate": "Date",
"host": {
"id": "Number",
"username": "string",
},
"winner": {
"id": "Number",
"username": "string"
},
"Category": [
{
"id": "Number",
"name": "string"
}
],
"images": [
{
"id": "Number",
"path": "string",
"auction": {
"id": "Number"
}
}
]
},
"price": "Number",
"createdDate": "Date"
}
get highest bid of a specific auction
Response
{
"id": "Number",
"user": {
"id": "Number",
"username": "string",
},
"auction": {
"id": "Number",
"title": "string",
"description": "string",
"startPrice": "Number",
"status": "string",
"endDate": "Date",
"host": {
"id": "Number",
"username": "string",
},
"winner": {
"id": "Number",
"username": "string"
},
"Category": [
{
"id": "Number",
"name": "string"
}
],
"images": [
{
"id": "Number",
"path": "string",
"auction": {
"id": "Number"
}
}
]
},
"price": "Number",
"createdDate": "Date"
}
[
{
"id": "Number",
"name": "string"
}
]
Optionals
- title=string
- status=string
- category=string
Notis, optinals can be combined
example:
[
{
"id": "Number",
"title": "string",
"description": "string",
"startPrice": "Number",
"status": "string",
"endDate": "Date",
"host": {
"id": "Number",
"username": "string"
},
"winner": {
"id": "Number",
"username": "string"
},
"categories": [
{
"id": "Number",
"name": "string"
}
],
"bids": [
{
"id": "Number",
"user": {
"id": "Number",
"username": "string"
},
"price": "number",
"createdDate": "Date"
}
],
"images": [
{
"id": "Number",
"path": "string",
"auction": {
"id": "Number"
}
},
{
"id": "Number",
"path": "string",
"auction": {
"id": "Number"
}
}
]
}
]
create a chat regarding an auction
Body: application/json
{
"auctionId": "Number"
}
{
"id": "Number",
"creator": {
"id": "Number",
"username": "string"
},
"receiver": {
"id": "Number",
"username": "string"
},
"auction": {
"id": "Number",
"title": "string"
}
}
get chats for current user
[
{
"id": "Number",
"creator": {
"id": "Number",
"username": "string"
},
"receiver": {
"id": "Number",
"username": "string"
},
"auction": {
"id": "Number",
"title": "string"
}
}
]
post a new message
Body: application/json
{
"message": "string",
}
{
"id": "Number",
"writer": {
"id": "Number",
"username": "string"
},
"message": "string",
"createdDate": "Date"
}
get all messages from a chat
[
{
"id": "Number",
"writer": {
"id": "Number",
"username": "string"
},
"message": "string",
"createdDate": "Date"
}
]
[
{
"id": "Number",
"message": "string",
"auction": {
"id": "Number"
},
"user": {
"id": "Number"
},
"isRead": "boolean"
}
]
[
{
"id": "Number",
"message": "string",
"auction": {
"id": "Number"
},
"user": {
"id": "Number"
},
"isRead": "boolean"
}
]