63 lines
1.3 KiB
HTTP
63 lines
1.3 KiB
HTTP
@SDG_Backend_Barracuda_HostAddress = http://localhost:5164
|
|
|
|
### Get all cards
|
|
GET {{SDG_Backend_Barracuda_HostAddress}}/card/
|
|
Accept: application/json
|
|
|
|
### Create a new card
|
|
POST {{SDG_Backend_Barracuda_HostAddress}}/card
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"value": "Sample Card Value"
|
|
}
|
|
|
|
### Get a card by ID
|
|
GET {{SDG_Backend_Barracuda_HostAddress}}/card/1
|
|
Accept: application/json
|
|
|
|
### Update a card
|
|
PUT {{SDG_Backend_Barracuda_HostAddress}}/card/1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"value": "Updated Card Value"
|
|
}
|
|
|
|
### Delete a card
|
|
DELETE {{SDG_Backend_Barracuda_HostAddress}}/card/1
|
|
|
|
|
|
### Create a new empty card list
|
|
POST {{SDG_Backend_Barracuda_HostAddress}}/cardlist/
|
|
Content-Type: application/json
|
|
|
|
### Create a new card list with cards and sub-lists
|
|
POST {{SDG_Backend_Barracuda_HostAddress}}/cardlist
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"cardIds": [3, 2],
|
|
"subListIds": [4]
|
|
}
|
|
|
|
### Get all card lists
|
|
GET {{SDG_Backend_Barracuda_HostAddress}}/cardlist
|
|
Accept: application/json
|
|
|
|
### Get a card list by ID (includes cards and sub-lists)
|
|
GET {{SDG_Backend_Barracuda_HostAddress}}/cardlist/1
|
|
Accept: application/json
|
|
|
|
### Update a card list
|
|
PUT {{SDG_Backend_Barracuda_HostAddress}}/cardlist/1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"cardIds": [4],
|
|
"subListIds": []
|
|
}
|
|
|
|
### Delete a card list
|
|
DELETE {{SDG_Backend_Barracuda_HostAddress}}/cardlist/1
|