Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mersocarlin/auction-service
https://github.com/mersocarlin/auction-service
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mersocarlin/auction-service
- Owner: mersocarlin
- License: mit
- Created: 2016-02-19T22:38:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-21T15:47:15.000Z (almost 9 years ago)
- Last Synced: 2024-04-24T10:07:09.196Z (8 months ago)
- Language: JavaScript
- Size: 77.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auction-service
Auction backend implementation.
## Stack used
1. C# and ASP.NET WebApi
2. SQL Server and EntityFramework
3. Repository and Service Pattern
4. Dependency Injection
5. NUnit and Moq for Unit Testing## Sample Routes
### [GET]
#### Fetch all Buyers
`api/v1/buyer`
```JSON
[
{
"id": 1,
"name": "Donald Duck"
},
{
"id": 2,
"name": "Uncle Scrooge"
}
]
```#### Fetch all Auctions
`/api/v1/auction`
```JSON
[
{
"id": 1,
"itemId": 1,
"bidStep": 100,
"isFinished": false,
"history": [
{
"id": 59,
"auctionId": 1,
"buyerId": 1,
"createdAt": "2016-02-21T07:35:21.807",
"auction": null,
"buyer": {
"id": 1,
"name": "Donald Duck"
}
},
...
],
"item": {
"id": 1,
"description": "The ASUS ZenWatch, which went on sale in November, recently won an iF Product Design Award - congratulations ASUS",
"name": "ASUS ZenWatch",
"picture": "http://www.mersocarlin.com/auction-images/watch.png",
"startingPrice": 1500
},
"highestBid": 2000,
"highestBidder": 1
},
...
]
```#### Fetch Auction by Id
`api/v1/auction/{auctionId}`### [POST]
#### Place Bid
`api/v1/auction/bid/{auctionId}/{buyerId}`