{"info":{"_postman_id":"881a7598-edf7-4e13-8fc2-d6177a342dcb","name":"auction-api","description":"<html><head></head><body><p>List of endpoints to an auction system.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25778360","collectionId":"881a7598-edf7-4e13-8fc2-d6177a342dcb","publishedId":"2s935sohZ2","public":true,"customColor":{"top-bar":"303030","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-02-10T13:01:38.000Z"},"item":[{"name":"Users","item":[{"name":"Create","id":"5b217e8a-bcd7-4009-8255-4ea4828b6745","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Murilo\",\r\n    \"email\": \"muriloh65@gmail.com\",\r\n    \"password\": \"12345\",\r\n    \"password_confirmation\": \"12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users","description":"<p>Creating an user will allow to place bids in the auction.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b217e8a-bcd7-4009-8255-4ea4828b6745"},{"name":"Authenticate","id":"db538d30-e15d-4972-8bbb-d392a5c4fd18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"muriloh65@gmail.com\",\r\n    \"password\": \"12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/authenticate","description":"<p>Sending previous created email and password, will generate a token to use as authentication.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","authenticate"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"db538d30-e15d-4972-8bbb-d392a5c4fd18"}],"id":"7121532c-612e-437a-ac62-8e559443cfee","_postman_id":"7121532c-612e-437a-ac62-8e559443cfee","description":""},{"name":"Bids","item":[{"name":"Create","id":"88231f8c-acec-4a18-a6b7-c108321ec0c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2NzcyNjk1MjR9.eGuIaHkCRAVuRgq0gjxrdrzfZLz4Kw5X96VQt_NSNRg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"item_id\": 2,\r\n    \"amount\": 1.1\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/bids","description":"<p>**** Requires authorization token ****</p>\n<p>Create a bid in the auction</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","bids"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"88231f8c-acec-4a18-a6b7-c108321ec0c4"},{"name":"Index","id":"662fc067-446d-4653-b59b-a21ec8d0614f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2NzcyNjk1MjR9.eGuIaHkCRAVuRgq0gjxrdrzfZLz4Kw5X96VQt_NSNRg","type":"text"}],"url":"http://localhost:3000/api/v1/bids","description":"<p>Check highest bid so dar in the auction.</p>\n<p>If authorization provided, it'll return also user current_bid.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","bids"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"662fc067-446d-4653-b59b-a21ec8d0614f"}],"id":"e1cc37d4-5ef1-4525-b936-4d075f8069df","_postman_id":"e1cc37d4-5ef1-4525-b936-4d075f8069df","description":""},{"name":"Items","item":[{"name":"Create","id":"83715297-c684-4312-8541-35bcd5c50ca8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2NzcyNjk1MjR9.eGuIaHkCRAVuRgq0gjxrdrzfZLz4Kw5X96VQt_NSNRg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"NFT 2\",\r\n    \"instant_buy_price\": 60\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/items","urlObject":{"protocol":"http","port":"3000","path":["api","v1","items"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"83715297-c684-4312-8541-35bcd5c50ca8"},{"name":"Buy","id":"b4d4e6b7-3bc3-46f1-9fac-1990fa821ae2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2NzcyNjU0OTV9.XP3G2-_P7OFLCRcMaZ6JCFgJ3qwu_uQbrfsHsUcqvH4","type":"text"}],"url":"http://localhost:3000/api/v1/items/2/buy","urlObject":{"protocol":"http","port":"3000","path":["api","v1","items","2","buy"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4d4e6b7-3bc3-46f1-9fac-1990fa821ae2"},{"name":"Show","id":"503d80f9-c1f6-4c40-92af-34eeb3b70468","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE2NzcyNjMwNzB9.NzU6hWh6klZO3Oa86Yf4hHLz3WBwMF3QgjVfZHh4a40","type":"text"}],"url":"http://localhost:3000/api/v1/items/2","urlObject":{"protocol":"http","port":"3000","path":["api","v1","items","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"503d80f9-c1f6-4c40-92af-34eeb3b70468"}],"id":"add42841-49d7-4de6-912d-2a8f2c5bdcfd","_postman_id":"add42841-49d7-4de6-912d-2a8f2c5bdcfd","description":""}]}