{"info":{"_postman_id":"486b3c64-c610-4bf3-9021-861350b2afea","name":"OCR_P10-SoftDesk","description":"<html><head></head><body><p>Documentation of the softdesk's API. there a list and description of all endpoints.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23129255","collectionId":"486b3c64-c610-4bf3-9021-861350b2afea","publishedId":"2s8Z6u3ZVi","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-12-21T14:03:48.000Z"},"item":[{"name":"Authentification","item":[{"name":"Signup","id":"ae6aafe4-3308-43ba-b167-6490acc28fff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"lulu","type":"text"},{"key":"email","value":"lulu@gmail.com","type":"text"},{"key":"first_name","value":"nom-lu","type":"text"},{"key":"last_name","value":"prenom-lu","type":"text"},{"key":"password","value":"ftwanadoo2","type":"text"}]},"url":"http://127.0.0.1:8000/signup/","description":"<p>Create a new user</p>\n<blockquote>\n<p>a successful creation will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["signup",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae6aafe4-3308-43ba-b167-6490acc28fff"},{"name":"Login","event":[{"listen":"test","script":{"id":"9027193a-6469-4a94-8e89-c509c71c7913","exec":["pm.environment.set(\"TOKEN\", pm.response.json().access);"],"type":"text/javascript"}}],"id":"ea632213-0e5a-42e5-b2b1-f9671bcf2319","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\":\"toto\",\n    \"password\":\"ftwanadoo2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/login/","description":"<p>User can login with his username &amp; password. He get a token.</p>\n<blockquote>\n<p>a successful registration will result in a HTTP 201 status code.<br />registration not possible because of bad request or incorrect password, will result in a HTTP 400 or 401 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["login",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea632213-0e5a-42e5-b2b1-f9671bcf2319"},{"name":"Login user not contributor","event":[{"listen":"test","script":{"id":"e66542b8-f983-432c-b888-530643acf73a","exec":["pm.environment.set(\"TOKEN\", pm.response.json().access);"],"type":"text/javascript"}}],"id":"70eb3cbb-b848-498a-9feb-cb07c8924c1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\":\"tata\",\n    \"password\":\"ftwanadoo2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/login/","description":"<p>User can login with his username &amp; password. He get a token.</p>\n<blockquote>\n<p>a successful registration will result in a HTTP 201 status code.<br />registration not possible because of bad request or incorrect password, will result in a HTTP 400 or 401 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["login",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"70eb3cbb-b848-498a-9feb-cb07c8924c1f"}],"id":"2525c0d3-4b60-4ed5-be7c-942ea8dd8c48","description":"<p>The account application, for the authentification.</p>\n<ul>\n<li>Register a new user</li>\n<li>Login a user</li>\n</ul>\n","_postman_id":"2525c0d3-4b60-4ed5-be7c-942ea8dd8c48"},{"name":"Project","item":[{"name":"List all projects","id":"1d1091ba-87bf-4e54-8792-cc9fe1a675f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:8000/project/","description":"<p>We get a list of all projects.</p>\n<blockquote>\n<p>a successful request will result in a HTTP 200 status code.<br />request not possible because of non authentified user, bad request, will result in a HTTP 400 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1d1091ba-87bf-4e54-8792-cc9fe1a675f5"},{"name":"Create a new project","id":"fe1d6d9d-77f6-4a36-a58a-96c441358e1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Project #New","type":"text"},{"key":"description","value":"new project ","type":"text"},{"key":"type","value":"Android","type":"text"}]},"url":"http://127.0.0.1:8000/project/","description":"<p>Create a new project.</p>\n<blockquote>\n<p>a successful creation will result in a HTTP 201 status code.<br />non existing project will result in a HTTP 404 status code.<br />creation not possible because of non authentified user, bad request, will result in a HTTP 400 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe1d6d9d-77f6-4a36-a58a-96c441358e1b"},{"name":"Get a project","id":"700f4364-8f9a-4f37-a4d1-2e0070a77ff4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://127.0.0.1:8000/project/1/","description":"<p>We get a specific project.</p>\n<blockquote>\n<p>a successful request will result in a HTTP 200 status code.<br />non existing project will result in a HTTP 404 status code.<br />request not possible because of non authentified user, bad request, will result in a HTTP 400 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"700f4364-8f9a-4f37-a4d1-2e0070a77ff4"},{"name":"Update a project","id":"5636dadc-73f7-4dc2-b21a-699538d75a70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Project #6","type":"text"},{"key":"description","value":"p06 change something","type":"text"},{"key":"type","value":"Android","type":"text"},{"key":"author_user","value":"2","type":"text"}]},"url":"http://127.0.0.1:8000/project/6/","description":"<p>We can update a specific project.</p>\n<blockquote>\n<p>a successful modification will result in a HTTP 204 status code.<br />non existing project will result in a HTTP 404 status code.<br />modification not possible because of non authentified user, bad request, will result in a HTTP 400 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","6",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"5636dadc-73f7-4dc2-b21a-699538d75a70"},{"name":"Delete a project","id":"d4f9dc41-f146-410f-9994-0c9ac41f4343","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"id","value":"13","type":"text"},{"key":"title ","value":"Project #6","type":"text"},{"key":"description","value":"p06","type":"text"},{"key":"type","value":"Android","type":"text"},{"key":"author_id","value":"2","type":"text"}]},"url":"http://127.0.0.1:8000/project/13/","description":"<p>We can delete a specific project.</p>\n<blockquote>\n<p>a successful registration will result in a HTTP 204 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","13",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4f9dc41-f146-410f-9994-0c9ac41f4343"}],"id":"053e7b34-e9c3-4ba4-ae51-fe0a12960aa8","description":"<p>This part is for the project application.</p>\n<p>we have these requests:</p>\n<ul>\n<li>Create a new project</li>\n<li>Get all projects</li>\n<li>Get a project</li>\n<li>Update a project</li>\n<li>Delete a project</li>\n</ul>\n","_postman_id":"053e7b34-e9c3-4ba4-ae51-fe0a12960aa8"},{"name":"Contributor","item":[{"name":"List all contributors","id":"20bea661-3bd9-4007-9c5d-ab2621785353","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:8000/project/1/users/","description":"<p>Get all contributors of a project.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","users",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"20bea661-3bd9-4007-9c5d-ab2621785353"},{"name":"Add contributor","id":"2921898f-04c8-45e1-9b1c-93a9eedf725c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"user_id","value":"4","type":"text"},{"key":"role","value":"Développeur","type":"text"}]},"url":"http://127.0.0.1:8000/project/1/users/","description":"<p>Add contributor to a specific project.</p>\n<blockquote>\n<p>a successful registration will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","users",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"2921898f-04c8-45e1-9b1c-93a9eedf725c"},{"name":"Delete contributor","id":"b5c3340e-c0f1-4d74-8435-f45448bcb622","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/project/1/users/8","description":"<p>Delete contributor of a specific project.</p>\n<blockquote>\n<p>a successful deletion will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","users","8"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5c3340e-c0f1-4d74-8435-f45448bcb622"}],"id":"305db595-bf79-47a8-bcff-1bc12a962a92","description":"<p>This part is for the contributor.</p>\n<p>we have these requests:</p>\n<ul>\n<li>Create a new contributor</li>\n<li>Get all contributors</li>\n<li>Delete a contributor</li>\n</ul>\n","_postman_id":"305db595-bf79-47a8-bcff-1bc12a962a92"},{"name":"Issue","item":[{"name":"List all issues","event":[{"listen":"test","script":{"id":"7699e7fc-ce20-4a5b-84e8-38f91cab0a19","exec":[""],"type":"text/javascript"}}],"id":"45414df0-8c63-4606-83b3-b6c886e23d78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:8000/project/1/issues/","description":"<p>Get the list of issues related to a project.</p>\n<blockquote>\n<p>a successful registration will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"45414df0-8c63-4606-83b3-b6c886e23d78"},{"name":"Create a issue","id":"be731dfa-3c68-49b0-819c-290b7e219ca3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Problème #New V200","type":"text"},{"key":"description","value":"Question ++++","type":"text"},{"key":"tag","value":"Improvement","type":"text"},{"key":"priority","value":"Low priority","type":"text"},{"key":"status","value":"To do","type":"text"}]},"url":"http://127.0.0.1:8000/project/1/issues/","description":"<p>Create a issue for a specific project.</p>\n<blockquote>\n<p>a successful creation will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"be731dfa-3c68-49b0-819c-290b7e219ca3"},{"name":"Update issue","id":"d73bbbe8-7d3b-4be5-888e-d3903a661ddb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Problème #65","type":"text"},{"key":"description","value":"Nouvelle question 88","type":"text"},{"key":"tag","value":"Improvement","type":"text"},{"key":"priority","value":"High priority","type":"text"},{"key":"status","value":"To do","type":"text"}]},"url":"http://127.0.0.1:8000/project/1/issues/6/","description":"<p>Update an issue from a specific project.</p>\n<blockquote>\n<p>a successful modification will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues","6",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d73bbbe8-7d3b-4be5-888e-d3903a661ddb"},{"name":"Delete issue","id":"84bdf58d-8c3b-4e57-8e08-bd466ce38357","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/project/1/issues/11/","description":"<p>Delete an issue from a specific project.</p>\n<blockquote>\n<p>a successful deletion will result in a HTTP 204 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues","11",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"84bdf58d-8c3b-4e57-8e08-bd466ce38357"}],"id":"35ed11fe-4642-4ccf-8f34-9ecab09148d9","description":"<p>This part is for the issue application.</p>\n<p>we have these requests:</p>\n<ul>\n<li>Get all issue</li>\n<li>Create a new issue</li>\n<li>Update a issue</li>\n<li>Delete a issue</li>\n</ul>\n","_postman_id":"35ed11fe-4642-4ccf-8f34-9ecab09148d9"},{"name":"Comment","item":[{"name":"List all comments","id":"e35ade15-8e47-4c10-8761-2611e87f8429","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:8000/project/1/issues/1/comment/","description":"<p>Get all comment of a specific issue of a specific project.</p>\n<blockquote>\n<p>a successful registration will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues","1","comment",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e35ade15-8e47-4c10-8761-2611e87f8429"},{"name":"Get a comment","id":"b29f5166-2e1f-45b9-bc2e-ebab07346087","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://127.0.0.1:8000/project/1/issues/1/comment/1","description":"<p>Get a specific comment of a specific issue of a specific project.</p>\n<blockquote>\n<p>a successful request will result in a HTTP 200 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues","1","comment","1"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b29f5166-2e1f-45b9-bc2e-ebab07346087"},{"name":"Create new comment","id":"10fb72af-3de6-4251-8be2-92c8c710a977","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"description","value":"new comment 3 and delete after ","type":"text"}]},"url":"http://127.0.0.1:8000/project/1/issues/1/comment/","description":"<p>Create a new comment for a specific issue of a specific project.</p>\n<blockquote>\n<p>a successful creation will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues","1","comment",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"10fb72af-3de6-4251-8be2-92c8c710a977"},{"name":"Update comment","id":"f00867b4-c80e-4338-bb57-c19f029a7ef9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"description","value":"update the comment ++++","type":"text"}]},"url":"http://127.0.0.1:8000/project/1/issues/1/comment/1/","description":"<p>Update a comment for a specific issue of a specific project.</p>\n<blockquote>\n<p>a successful modification will result in a HTTP 201 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues","1","comment","1",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f00867b4-c80e-4338-bb57-c19f029a7ef9"},{"name":"Delete comment","id":"9ab93464-73ec-4662-9166-d0e5b1a23f75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/project/1/issues/1/comment/2","description":"<p>Delete a comment from a specific issue from a specific project.</p>\n<blockquote>\n<p>a successful deletion will result in a HTTP 204 status code.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8000","path":["project","1","issues","1","comment","2"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ab93464-73ec-4662-9166-d0e5b1a23f75"}],"id":"ada8d079-bd57-4efc-90e6-579e39f519b6","_postman_id":"ada8d079-bd57-4efc-90e6-579e39f519b6","description":""}]}