{"id":21581602,"url":"https://github.com/tsaytson/boardcamp-java","last_synced_at":"2025-03-18T08:14:39.307Z","repository":{"id":221645908,"uuid":"752144398","full_name":"TSaytson/boardcamp-java","owner":"TSaytson","description":"Boardcamp is a management system for board games rentals","archived":false,"fork":false,"pushed_at":"2024-06-20T15:09:10.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T14:45:18.463Z","etag":null,"topics":["globalexceptionhandler","hibernate-orm","java17","jpa-hibernate","junit","maven","postgresql","spring-boot","springdevtools","springweb","validation"],"latest_commit_sha":null,"homepage":"http://ec2-3-138-111-230.us-east-2.compute.amazonaws.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TSaytson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-03T06:37:38.000Z","updated_at":"2024-06-20T15:09:12.000Z","dependencies_parsed_at":"2024-05-07T17:52:13.508Z","dependency_job_id":"65ee27aa-3ad3-494c-a4b4-916e16e771f2","html_url":"https://github.com/TSaytson/boardcamp-java","commit_stats":null,"previous_names":["tsaytson/boardcamp-java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TSaytson%2Fboardcamp-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TSaytson%2Fboardcamp-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TSaytson%2Fboardcamp-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TSaytson%2Fboardcamp-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TSaytson","download_url":"https://codeload.github.com/TSaytson/boardcamp-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244181393,"owners_count":20411605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["globalexceptionhandler","hibernate-orm","java17","jpa-hibernate","junit","maven","postgresql","spring-boot","springdevtools","springweb","validation"],"created_at":"2024-11-24T14:13:05.255Z","updated_at":"2025-03-18T08:14:39.285Z","avatar_url":"https://github.com/TSaytson.png","language":"Java","readme":"# Welcome to Boardcamp API\nThe API for the lovers of board games. Boardcamp API handles REST requests for board games rentals as described below\n\n## Customers\n\n### GET /customers/:customerId\n```\n{\n  id: 1,\n  name: 'João Alfredo',\n  cpf: '01234567890'\n}\n```\n\n### POST /customers\n```\n{\n  name: 'João Alfredo',\n  cpf: '01234567890'\n}\n```\n#### Response\n```\n{\n\tid: 1,\n  name: 'João Alfredo',\n  cpf: '01234567890'\n}\n```\n\n## Games\n\n### GET /games\n```\n[\n  {\n    id: 1,\n    name: 'Banco Imobiliário',\n    image: 'http://',\n    stockTotal: 3,\n    pricePerDay: 1500\n  },\n  {\n    id: 2,\n    name: 'Detetive',\n    image: 'http://',\n    stockTotal: 1,\n    pricePerDay: 2500\n  },\n]\n```\n\n### POST /games\n```\n{\n  name: 'Banco Imobiliário',\n  image: 'http://www.imagem.com.br/banco_imobiliario.jpg',\n  stockTotal: 3,\n  pricePerDay: 1500\n}\n```\n#### Response\n```\n{\n\tid: 1,\n  name: 'Banco Imobiliário',\n  image: 'http://www.imagem.com.br/banco_imobiliario.jpg',\n  stockTotal: 3,\n  pricePerDay: 1500\n}\n```\n\n## Rentals\n\n### GET /rentals\n```\n[\n  {\n    id: 1,\n    rentDate: '2021-06-20',\n    daysRented: 3,\n    returnDate: null, // troca pra uma data quando já devolvido\n    originalPrice: 4500,\n    delayFee: 0, // troca por outro valor caso tenha devolvido com atraso\n    customer: {\n      id: 1,\n      name: 'João Alfredo',\n\t\t  cpf: '01234567890'\n    },\n    game: {\n      id: 1,\n\t\t  name: 'Banco Imobiliário',\n\t\t  image: 'http://www.imagem.com.br/banco.jpg',\n\t\t  stockTotal: 3,\n\t\t  pricePerDay: 1500\n    }\n  }\n]\n```\n### POST /rentals\n```\n{\n  customerId: 1,\n  gameId: 1,\n  daysRented: 3\n}\n```\n#### Response\n```\n{\n    id: 1,\n    rentDate: '2021-06-20',\n    daysRented: 3,\n    returnDate: null, \n    originalPrice: 4500,\n    delayFee: 0, \n    customer: {\n      id: 1,\n      name: 'João Alfredo',\n\t\t  cpf: '01234567890'\n    },\n    game: {\n      id: 1,\n\t\t  name: 'Banco Imobiliário',\n\t\t  image: 'http://www.imagem.com.br/banco.jpg',\n\t\t  stockTotal: 3,\n\t\t  pricePerDay: 1500\n    }\n  }\n```\n### PUT /rentals/:rentalId/return\n```\n{\n    id: 1,\n    rentDate: '2021-06-20',\n    daysRented: 3,\n    returnDate: '2021-06-25', \n    originalPrice: 4500,\n    delayFee: 3000, \n    customer: {\n      id: 1,\n      name: 'João Alfredo',\n\t\t  cpf: '01234567890'\n    },\n    game: {\n      id: 1,\n\t\t  name: 'Banco Imobiliário',\n\t\t  image: 'http://www.imagem.com.br/banco.jpg',\n\t\t  stockTotal: 3,\n\t\t  pricePerDay: 1500\n    }\n  }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsaytson%2Fboardcamp-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsaytson%2Fboardcamp-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsaytson%2Fboardcamp-java/lists"}