cartes/postman/Cards.postman_collection.json

86 lines
2.8 KiB
JSON
Raw Permalink Normal View History

{
"info": {
"_postman_id": "f6e0a899-d4c7-49a4-9b03-034938dacde1",
"name": "Cards",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get Hand",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8080/api/deck/hand",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"deck",
"hand"
]
}
},
"response": []
},
{
"name": "Sort hand",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
2021-10-30 18:25:18 +00:00
"raw": "[\n {\n \"shape\": \"CLUBS\",\n \"number\": \"SIX\"\n },\n {\n \"shape\": \"SPADES\",\n \"number\": \"SEVEN\"\n },\n {\n \"shape\": \"HEARTS\",\n \"number\": \"SIX\"\n },\n {\n \"shape\": \"CLUBS\",\n \"number\": \"JACK\"\n },\n {\n \"shape\": \"SPADES\",\n \"number\": \"FOUR\"\n },\n {\n \"shape\": \"DIAMONDS\",\n \"number\": \"SIX\"\n },\n {\n \"shape\": \"DIAMONDS\",\n \"number\": \"FIVE\"\n },\n {\n \"shape\": \"DIAMONDS\",\n \"number\": \"THREE\"\n },\n {\n \"shape\": \"HEARTS\",\n \"number\": \"TWO\"\n },\n {\n \"shape\": \"SPADES\",\n \"number\": \"TWO\"\n }\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8080/api/deck/hand:sort",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"deck",
"hand:sort"
]
}
},
"response": []
},
{
"name": "Reset game",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
2021-10-30 18:25:18 +00:00
"raw": "[\n {\n \"shape\": \"CLUBS\",\n \"number\": \"SIX\"\n },\n {\n \"shape\": \"SPADES\",\n \"number\": \"SEVEN\"\n },\n {\n \"shape\": \"HEARTS\",\n \"number\": \"SIX\"\n },\n {\n \"shape\": \"CLUBS\",\n \"number\": \"JACK\"\n },\n {\n \"shape\": \"SPADES\",\n \"number\": \"FOUR\"\n },\n {\n \"shape\": \"DIAMONDS\",\n \"number\": \"SIX\"\n },\n {\n \"shape\": \"DIAMONDS\",\n \"number\": \"FIXE\"\n },\n {\n \"shape\": \"DIAMONDS\",\n \"number\": \"THREE\"\n },\n {\n \"shape\": \"HEARTS\",\n \"number\": \"TWO\"\n },\n {\n \"shape\": \"SPADES\",\n \"number\": \"TWO\"\n }\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8080/api/deck:reset",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"deck:reset"
]
}
},
"response": []
}
]
}