{"info":{"_postman_id":"09daeae4-3839-4fdb-877d-36f76a6ca105","name":"Deck of Cards","description":"<html><head></head><body><p>Documentação da API pública Deck of Cards demonstrando os endpoints da API.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2374833","collectionId":"09daeae4-3839-4fdb-877d-36f76a6ca105","publishedId":"2s9YXh5Nah","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-07T21:26:59.000Z"},"item":[{"name":"Shuffle","id":"6aec4d90-86ec-4e1c-ad7c-4c39bc76ed7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1","description":"<p>Rota responsável por gerar um baralho. Por padrão é sempre gerado utilizando apenas um deck. Utilizar o parâmetro deck_count para mais decks.</p>\n","urlObject":{"protocol":"https","path":["api","deck","new","shuffle",""],"host":["deckofcardsapi","com"],"query":[{"key":"deck_count","value":"1"}],"variable":[]}},"response":[{"id":"f33d8510-a0b2-4134-a2b4-ab0439a3aedc","name":"Shuffle","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1","protocol":"https","host":["deckofcardsapi","com"],"path":["api","deck","new","shuffle",""],"query":[{"key":"deck_count","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Nov 2023 21:09:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=EBQ6PRgsEwGR5lEKN7jNGHrdrTQ5oeMd5t4D4yxycX8ezVt2%2FFZ%2BeW38PxuWqcynvu%2B9x8WwgMMcWK7q054UIM14hfM9h%2Bm5YlVQOCkGIfWCHSPwYflEd9sv29JJ%2BEUe3KnCS2g%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"82288e153e3a671c-AMS"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"deck_id\": \"id_do_meu_baralho\",\n    \"remaining\": 52, //Total de cartas disponiveis\n    \"shuffled\": true //informação se as cartas foram embaralhadas\n}"}],"_postman_id":"6aec4d90-86ec-4e1c-ad7c-4c39bc76ed7d"},{"name":"Back of Card Image","id":"c546ab27-4bd7-4939-8ab0-8b7b8396c661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://deckofcardsapi.com/static/img/back.png","description":"<p>Rota retorna a imagem da parte de tras do baralho.</p>\n","urlObject":{"protocol":"https","path":["static","img","back.png"],"host":["deckofcardsapi","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c546ab27-4bd7-4939-8ab0-8b7b8396c661"},{"name":"Draw a Card","id":"21d3cd9f-3c33-41d4-8884-5242a4ad70a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://deckofcardsapi.com/api/deck/t82hq34ivy5a/draw/?count=1","description":"<p>Rota responsável por comprar/sacar uma carta do baralho. Retorna os detalhes da carta e quantidade de cartas restantes no baralho.</p>\n","urlObject":{"protocol":"https","path":["api","deck","t82hq34ivy5a","draw",""],"host":["deckofcardsapi","com"],"query":[{"key":"count","value":"1"}],"variable":[]}},"response":[{"id":"5ab56389-1206-42f5-a9da-32f7a991b777","name":"Draw a Card","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://deckofcardsapi.com/api/deck/<deck_id>/draw/?count=1","protocol":"https","host":["deckofcardsapi","com"],"path":["api","deck","<deck_id>","draw",""],"query":[{"key":"count","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Nov 2023 22:16:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Q6Oeera0nj%2FrMOrvvzHbjscqzZv6YAdPYlCodzP3ULPlow7QfQqsMa3zIp8pOWO2qtwvyDm1U%2BqHVozJ6UvGUUCEbnBzNXG3H3%2FPDebWJ04P9xx%2FEyAOiqK37PKThmexHp25FNg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8228f160ae23a4bd-GRU"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"deck_id\": \"id_do_meu_baralho\",\n    \"cards\": [\n        {\n            \"code\": \"6D\",\n            \"image\": \"https://deckofcardsapi.com/static/img/6D.png\",\n            \"images\": {\n                \"svg\": \"https://deckofcardsapi.com/static/img/6D.svg\",\n                \"png\": \"https://deckofcardsapi.com/static/img/6D.png\"\n            },\n            \"value\": \"6\",\n            \"suit\": \"DIAMONDS\"\n        }\n    ],\n    \"remaining\": 48\n}"}],"_postman_id":"21d3cd9f-3c33-41d4-8884-5242a4ad70a9"}]}