{"info":{"_postman_id":"e93e17ff-0b7d-4164-a66f-f3bf4be7df0f","name":"Assigment","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"39216526","collectionId":"e93e17ff-0b7d-4164-a66f-f3bf4be7df0f","publishedId":"2sAYQUptVD","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-01-09T09:54:53.000Z"},"item":[{"name":"04 GitHub API Documentation","item":[{"name":"users","item":[{"name":"Task 01","id":"72c5600b-d2ce-4883-a5e9-44b786fde338","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/users","urlObject":{"protocol":"http","port":"8000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"72c5600b-d2ce-4883-a5e9-44b786fde338"},{"name":"Task 02","id":"4b22df91-5c19-470d-aa0b-5a02e7bb17de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"4b22df91-5c19-470d-aa0b-5a02e7bb17de"},{"name":"Task 03","id":"6e5815de-a9fe-4c05-865b-88c5f40fdcd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"userId\": \"u004\",\r\n  \"username\": \"yashvi_patel\",\r\n  \"fullName\": \"Yashvi Patel\",\r\n  \"email\": \"yashvi@codinggita.com\",\r\n  \"bio\": \"Frontend developer and designer.\",\r\n  \"profilePicture\": \"http://codinggita.com/media/yashvi.jpg\",\r\n  \"repositories\": [],\r\n  \"followers\": 0,\r\n  \"following\": 0,\r\n  \"isVerified\": false\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/users","urlObject":{"protocol":"http","port":"8000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e5815de-a9fe-4c05-865b-88c5f40fdcd1"},{"name":"Task 04","id":"a6554025-f324-486d-8e13-918f885562b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"bio\": \"Full-stack developer and open-source contributor.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/users/:userId","urlObject":{"protocol":"http","port":"8000","path":["users",":userId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"u001","key":"userId"}]}},"response":[],"_postman_id":"a6554025-f324-486d-8e13-918f885562b5"},{"name":"Task 05","id":"e753974c-755a-4fd0-83df-cc98b0162832","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/users/:userId","urlObject":{"protocol":"http","port":"8000","path":["users",":userId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"u004","key":"userId"}]}},"response":[],"_postman_id":"e753974c-755a-4fd0-83df-cc98b0162832"}],"id":"85881a8f-5d9c-460d-94d0-08af45f59ad1","_postman_id":"85881a8f-5d9c-460d-94d0-08af45f59ad1","description":""},{"name":"Repositories","item":[{"name":"Task 06","id":"49138796-b461-4ee3-91fd-4eb3ee406a97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"49138796-b461-4ee3-91fd-4eb3ee406a97"},{"name":"Task 07","id":"ea1e5ebd-5bff-4066-9724-68d7ba2ff9bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/repositories/:repoId","urlObject":{"protocol":"http","port":"8000","path":["repositories",":repoId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"r001","key":"repoId"}]}},"response":[],"_postman_id":"ea1e5ebd-5bff-4066-9724-68d7ba2ff9bb"},{"name":"Task 08","id":"01311945-6015-42a8-8204-c5b04163a6b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"repoId\": \"r004\",\r\n  \"userId\": \"u001\",\r\n  \"repoName\": \"new-project\",\r\n  \"description\": \"A new exciting project.\",\r\n  \"language\": \"JavaScript\",\r\n  \"stars\": 0,\r\n  \"forks\": 0,\r\n  \"issues\": [],\r\n  \"pullRequests\": [],\r\n  \"createdAt\": \"2025-01-09T00:00:00Z\",  // Use the current date or modify accordingly\r\n  \"isPrivate\": false\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/repositories","urlObject":{"protocol":"http","port":"8000","path":["repositories"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"01311945-6015-42a8-8204-c5b04163a6b8"},{"name":"Task 09","id":"ece579bc-6860-4a52-bb23-0bf0597d721d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"description\": \"Updated description for coding tutorials.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/repositories/:repoId","urlObject":{"protocol":"http","port":"8000","path":["repositories",":repoId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"r002","key":"repoId"}]}},"response":[],"_postman_id":"ece579bc-6860-4a52-bb23-0bf0597d721d"},{"name":"Task 10","id":"4dfc7265-f880-4760-997c-5e4bc3bc48e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8000/repositories/:repoId","urlObject":{"protocol":"http","port":"8000","path":["repositories",":repoId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"r004","key":"repoId"}]}},"response":[],"_postman_id":"4dfc7265-f880-4760-997c-5e4bc3bc48e6"}],"id":"34d23d4f-499c-4231-87b0-21da09bde6c1","_postman_id":"34d23d4f-499c-4231-87b0-21da09bde6c1","description":""},{"name":"Issues","item":[{"name":"Task 11","id":"e531717b-de4c-4b6d-b084-bde09ba4900a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/issues/:repoId","urlObject":{"protocol":"http","port":"8000","path":["issues",":repoId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"r001","key":"repoId"}]}},"response":[],"_postman_id":"e531717b-de4c-4b6d-b084-bde09ba4900a"},{"name":"Task 12","id":"7e3d48b1-63b7-4a81-8058-b561b7d6af4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"issueId\": \"i005\",\r\n  \"repoId\": \"r002\",\r\n  \"userId\": \"u001\",\r\n  \"title\": \"Fix broken links in documentation\",\r\n  \"description\": \"The documentation links need to be updated.\",\r\n  \"status\": \"open\",\r\n  \"createdAt\": \"2025-01-09T00:00:00Z\",\r\n  \"closedAt\": null\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/issues","urlObject":{"protocol":"http","port":"8000","path":["issues"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e3d48b1-63b7-4a81-8058-b561b7d6af4e"},{"name":"Task 13","id":"c552f2e0-fc60-4456-b958-8045918dcb7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"closed\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/issues/:issueId","urlObject":{"protocol":"http","port":"8000","path":["issues",":issueId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"i001","key":"issueId"}]}},"response":[],"_postman_id":"c552f2e0-fc60-4456-b958-8045918dcb7f"},{"name":"Task 14","id":"9d445c2d-ea6f-4e56-9aa4-b719b7d1954c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8000/issues/:issueId","urlObject":{"protocol":"http","port":"8000","path":["issues",":issueId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"i005","key":"issueId"}]}},"response":[],"_postman_id":"9d445c2d-ea6f-4e56-9aa4-b719b7d1954c"}],"id":"6f9978d8-69a8-4c28-8e7e-4b77174b4723","_postman_id":"6f9978d8-69a8-4c28-8e7e-4b77174b4723","description":""},{"name":"Pull Requests","item":[{"name":"Task 15","id":"927a369b-659e-47c1-9478-33a52851fab7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/pullRequests/:repoId","urlObject":{"protocol":"http","port":"8000","path":["pullRequests",":repoId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"r002","key":"repoId"}]}},"response":[],"_postman_id":"927a369b-659e-47c1-9478-33a52851fab7"},{"name":"Task 16","id":"995b208e-ac36-47ae-96dd-32817a58f69a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"prId\": \"pr004\",\r\n  \"repoId\": \"r003\",\r\n  \"userId\": \"u002\",\r\n  \"title\": \"Improve UI design\",\r\n  \"description\": \"Refactored the CSS for better UI design.\",\r\n  \"status\": \"open\",\r\n  \"createdAt\": \"2025-01-09T00:00:00Z\",\r\n  \"mergedAt\": null\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/pullRequests","urlObject":{"protocol":"http","port":"8000","path":["pullRequests"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"995b208e-ac36-47ae-96dd-32817a58f69a"},{"name":"Task 17","id":"ee920416-70fb-424b-9b30-7f88eda9ff4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8000/pullRequests/:prId","urlObject":{"protocol":"http","port":"8000","path":["pullRequests",":prId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"pr004","key":"prId"}]}},"response":[],"_postman_id":"ee920416-70fb-424b-9b30-7f88eda9ff4b"}],"id":"b4b8dae7-b399-4407-95e6-b0752d54aae7","_postman_id":"b4b8dae7-b399-4407-95e6-b0752d54aae7","description":""},{"name":"Commits","item":[{"name":"Task 18","id":"c0a02a06-3cc2-4767-a3df-b02a893aef64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/commits/:repoId","urlObject":{"protocol":"http","port":"8000","path":["commits",":repoId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"r001","key":"repoId"}]}},"response":[],"_postman_id":"c0a02a06-3cc2-4767-a3df-b02a893aef64"},{"name":"Task 19","id":"63d451a4-9920-4abd-9c29-50ade64fde90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"commitId\": \"c004\",\r\n  \"repoId\": \"r001\",\r\n  \"userId\": \"u003\",\r\n  \"message\": \"Added a new feature to the blog\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/commits","urlObject":{"protocol":"http","port":"8000","path":["commits"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"63d451a4-9920-4abd-9c29-50ade64fde90"},{"name":"Task 20","id":"b3e28359-8c6b-47b8-b0ff-6830743015ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8000/commits/:commitId","urlObject":{"protocol":"http","port":"8000","path":["commits",":commitId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"c004","key":"commitId"}]}},"response":[],"_postman_id":"b3e28359-8c6b-47b8-b0ff-6830743015ef"}],"id":"9b758421-40f6-4373-9e53-d1b4d14b61ec","_postman_id":"9b758421-40f6-4373-9e53-d1b4d14b61ec","description":""},{"name":"Forks and Stars","item":[{"name":"Task 21","id":"0876b068-8301-430b-94e0-a87d12ed90c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"forkId\": \"f003\",\r\n  \"repoId\": \"r001\",\r\n  \"userId\": \"u003\",\r\n  \"forkedAt\": \"2025-01-09T00:00:00Z\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/forks","urlObject":{"protocol":"http","port":"8000","path":["forks"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0876b068-8301-430b-94e0-a87d12ed90c7"},{"name":"Task 22","id":"94eb41b9-248e-4dc0-88cd-6649a4b0255e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"starId\": \"s004\",\r\n  \"repoId\": \"r002\",\r\n  \"userId\": \"u003\",\r\n  \"starredAt\": \"2025-01-09T00:00:00Z\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/stars","urlObject":{"protocol":"http","port":"8000","path":["stars"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"94eb41b9-248e-4dc0-88cd-6649a4b0255e"}],"id":"0ceb3452-939f-429c-8e70-872d2960b6c9","_postman_id":"0ceb3452-939f-429c-8e70-872d2960b6c9","description":""}],"id":"8f12aa3d-a453-4f4b-bcb0-1a6e5a6c1674","description":"<p>This GitHub API allows you to interact with a GitHub-like platform, managing users, repositories, issues, pull requests, commits, forks, and stars. The API interacts with a MongoDB database, providing an organized structure for data storage and retrieval. Below is an overview of the key operations.</p>\n<h4 id=\"collections\">Collections</h4>\n<ul>\n<li><p><strong>Users</strong>: Stores user profiles, including details like username, email, and followers.</p>\n</li>\n<li><p><strong>Repositories</strong>: Contains information about repositories such as name, description, and the associated user.</p>\n</li>\n<li><p><strong>Issues</strong>: Manages issues within repositories, including status updates (open, closed).</p>\n</li>\n<li><p><strong>Pull Requests</strong>: Tracks pull requests, with details about title, status, and merged date.</p>\n</li>\n<li><p><strong>Commits</strong>: Stores commit information related to repository changes.</p>\n</li>\n<li><p><strong>Forks</strong>: Keeps track of when repositories are forked by users.</p>\n</li>\n<li><p><strong>Stars</strong>: Allows users to \"star\" repositories, marking their interest.</p>\n</li>\n</ul>\n<h4 id=\"mongodb-setup\">MongoDB Setup</h4>\n<ul>\n<li><p>The <strong>Users</strong> collection stores details about GitHub users.</p>\n</li>\n<li><p>The <strong>Repositories</strong> collection contains repositories, each linked to a user.</p>\n</li>\n<li><p><strong>Issues</strong> track problems in repositories, while <strong>Pull Requests</strong> manage contributions.</p>\n</li>\n<li><p><strong>Commits</strong> are used to track changes made to repositories.</p>\n</li>\n<li><p><strong>Forks</strong> record when a repository is forked, and <strong>Stars</strong> manage user interests in repositories.</p>\n</li>\n</ul>\n<h4 id=\"api-endpoints\">API Endpoints</h4>\n<ul>\n<li><p><strong>User management</strong>: Create, update, fetch, and delete users.</p>\n</li>\n<li><p><strong>Repository management</strong>: Create, fetch, update, and delete repositories.</p>\n</li>\n<li><p><strong>Issue and Pull Request management</strong>: Add, update, and fetch issues and pull requests.</p>\n</li>\n<li><p><strong>Commit management</strong>: Add and fetch commits for repositories.</p>\n</li>\n<li><p><strong>Forking and starring</strong>: Fork repositories and star repositories.</p>\n</li>\n</ul>\n<p>This API enables the simulation of GitHub-like operations for development and testing purposes</p>\n","_postman_id":"8f12aa3d-a453-4f4b-bcb0-1a6e5a6c1674"}]}