Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ebwinters/pop-backend
A more secure, scalable, and modern backend infrastructure to support the Pencils of Promise gala
https://github.com/ebwinters/pop-backend
Last synced: about 1 month ago
JSON representation
A more secure, scalable, and modern backend infrastructure to support the Pencils of Promise gala
- Host: GitHub
- URL: https://github.com/ebwinters/pop-backend
- Owner: ebwinters
- Created: 2021-10-12T14:45:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T15:58:55.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T06:49:38.302Z (almost 2 years ago)
- Language: C#
- Size: 498 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PoP-Backend
A more secure, scalable, and modern backend infrastructure to support the Pencils of Promise gala### Auth
We use a basic auth schema with username and password sent encrypted in the header.## APIs
### Accounting
#### GET accounting/total
```json
{
"Total": 0.00
}
```
#### POST accounting/finalize
- Creates invoices for all outstanding donation and bid payments for all users
- BODY contains a single string password for triggering the action
```json
""
```#### POST accounting/pledge
- Create an incomplete payment to be invoiced later
```json
{
"email": "",
"amount": 0.00,
"auctionId": 0,
"description": ""
}
```### Auctions
#### GET auction
```json
[
{
"id": 1,
"auctionTypeId": 1,
"title": "fake",
"description": "test",
"restrictions": "sdaddd",
"isActive": true,
"amount": 206.00,
"created": "2021-10-13T21:48:14.767",
"imageUrl": null
}
]```
#### GET auction/{typeId}
- Get all auctions under a specific type
> 1 = give> 2 = live
> 5 = donation
> 6 = room
```json
[
{
"id": 1,
"auctionTypeId": 1,
"title": "fake",
"description": "test",
"restrictions": "sdaddd",
"isActive": true,
"amount": 206.00,
"created": "2021-10-13T21:48:14.767",
"imageUrl": null
}
]```
#### GET auction/highestbidoftype/{typeId}
- Gets highest bid information for all auctions of type
```json
[
{
"id": 14,
"auctionId": 2,
"amount": 10.00,
"email": "[email protected]",
"timestamp": "2021-10-13T21:16:01.517"
}
]
```#### GET auction/highestbid/{auctionId}
- Gets highest bid for specific auction
```json
[
{
"id": 14,
"auctionId": 2,
"amount": 10.00,
"email": "[email protected]",
"timestamp": "2021-10-13T21:16:01.517"
}
]
```#### POST auction/bid/{auctionId}
- Creates invoices for all outstanding donation and bid payments for all users
- BODY contains a single string password for triggering the action
```json
{
"email": "",
"Amount": 0.0
}
```