{"info":{"_postman_id":"8e5e2d69-5e9a-42c9-9680-ae0d9398a887","name":"Streamcards API","description":"<html><head></head><body><p>Basic calls for Streamcards clone API</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11626220","collectionId":"8e5e2d69-5e9a-42c9-9680-ae0d9398a887","publishedId":"TVYDeKbL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-10-23T00:47:41.000Z"},"item":[{"name":"http://localhost:3000/api/cards","id":"ccde718f-32c7-44dc-8fd0-cb1dd9c542e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Test Card 11\",\r\n    \"rarity\": \"Legendary\",\r\n    \"image\": \"https://via.placeholder.com/300x500\",\r\n    \"published\": false,\r\n    \"owner\": \"5f8db26a4a66295799560182\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/cards","description":"<p>Create card</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cards"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccde718f-32c7-44dc-8fd0-cb1dd9c542e6"},{"name":"http://localhost:3000/api/cards/5f8db8ad3caab6531c4dd9d5","id":"cacb3a50-28b5-4c98-829c-19b3ea808d4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/cards/6408877a649ac29c5ccb9881","description":"<p>Get a card by ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cards","6408877a649ac29c5ccb9881"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cacb3a50-28b5-4c98-829c-19b3ea808d4c"},{"name":"http://localhost:3000/api/cards/owner/5f8db26a4a66295799560182?cardsPerPage=3&lastCardId=5f91559d22880a5e04a18e24","id":"faf4acb5-f439-4c61-b291-17f169390d97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/cards/owner/5f8db26a4a66295799560182?cardsPerPage=3&lastCardId=5f91559d22880a5e04a18e24","description":"<p>Get all cards from an owner, paginated</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cards","owner","5f8db26a4a66295799560182"],"host":["localhost"],"query":[{"key":"cardsPerPage","value":"3"},{"key":"lastCardId","value":"5f91559d22880a5e04a18e24"}],"variable":[]}},"response":[],"_postman_id":"faf4acb5-f439-4c61-b291-17f169390d97"},{"name":"http://localhost:3000/api/cards","id":"9085bf00-c2d5-4490-8194-b299a9667119","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"_id\": \"5f8b4aa92f12c654acaf9b47\",\r\n    \"name\" : \"Test Card 12 UPDATED\",\r\n    \"rarity\": \"Normal\",\r\n    \"limited\": false,\r\n    \"numberAvailable\": 0,\r\n    \"published\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/cards","description":"<p>Update card</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cards"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9085bf00-c2d5-4490-8194-b299a9667119"},{"name":"http://localhost:3000/api/cards","id":"ca3a41c6-a957-483b-a0a5-5aa4000dded1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"_id\": \"5f8b4aa92f12c654acaf9b47\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/cards","description":"<p>Delete card</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cards"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca3a41c6-a957-483b-a0a5-5aa4000dded1"},{"name":"http://localhost:3000/api/cards/publish","id":"e2307fe1-9cb7-4c0d-a93c-9416cdaf4530","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"_id\": \"5f8c6edeaa266618d4f338ce\",\r\n        \"name\": \"This doesn't change the name, cards passed can have any attributes\"\r\n    },\r\n    {\r\n        \"_id\": \"5f8c6d1f41229b67e84bb383\",\r\n        \"name\": \"This doesn't change the name, cards passed can have any attributes\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/cards/publish","description":"<p>Publish a collection of cards</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cards","publish"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2307fe1-9cb7-4c0d-a93c-9416cdaf4530"},{"name":"http://localhost:3000/api/cards/unpublish","id":"4e2b245f-939f-49ef-8fd2-3a918633e34a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"_id\": \"5f8c6edeaa266618d4f338ce\",\r\n        \"name\": \"This doesn't change the name, cards passed can have any attributes\"\r\n    },\r\n    {\r\n        \"_id\": \"5f8c6d1f41229b67e84bb383\",\r\n        \"name\": \"This doesn't change the name, cards passed can have any attributes\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/cards/unpublish","description":"<p>Unpublish a collection of cards</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cards","unpublish"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e2b245f-939f-49ef-8fd2-3a918633e34a"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}}}