cartes/postman/Cards.postman_collection.json
2021-10-30 14:54:13 +02:00

86 lines
2.8 KiB
JSON

{
"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",
"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\": \"DIMONDS\",\n \"number\": \"SIX\"\n },\n {\n \"shape\": \"DIMONDS\",\n \"number\": \"FIVE\"\n },\n {\n \"shape\": \"DIMONDS\",\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",
"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\": \"DIMONDS\",\n \"number\": \"SIX\"\n },\n {\n \"shape\": \"DIMONDS\",\n \"number\": \"FIXE\"\n },\n {\n \"shape\": \"DIMONDS\",\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": []
}
]
}