diff --git a/backend/apis/BlinkApiUsageExample.json b/backend/apis/BlinkApiUsageExample.json index 7e8db69..3067caa 100644 --- a/backend/apis/BlinkApiUsageExample.json +++ b/backend/apis/BlinkApiUsageExample.json @@ -1 +1,793 @@ -{"_type":"export","__export_format":4,"__export_date":"2024-03-25T16:42:55.411Z","__export_source":"insomnia.desktop.app:v2023.5.8","resources":[{"_id":"req_470ea70dacf5457e9285c96080b123ca","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1710925703679,"created":1710780008983,"url":"http://localhost:3000/api/organizations/4/joboffers/","name":"GetJobOffers","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_e2f80e0338ce4532aa3dfdfb580aaccc"}],"authentication":{},"metaSortKey":-1710780008983,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"wrk_467396595b6f468aa658414cec14c306","parentId":null,"modified":1711013722452,"created":1711013722452,"name":"Blink","description":"","scope":"collection","_type":"workspace"},{"_id":"req_8eb6a338cbaf4cbfb283481e4955debb","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036376465,"created":1710772767420,"url":"http://localhost:3000/api/organizations/joboffers/34","name":"DeleteJobOffer","description":"","method":"DELETE","body":{},"parameters":[],"headers":[{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_f5b506a6f1144612b4bc5ab25d7412bf"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1710772767420,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c91b3a34a4b54dfe82404e54248d5ca6","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036370433,"created":1710759450846,"url":"http://localhost:3000/api/organizations/6/joboffers","name":"CreateJobOffer","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"title\" : \"NodeJS developer\",\n\t\"description\" : \"We are looking for NodeJS developers which can help us build Blink\",\n\t\"requirements\": \"English, NodeJS/Javascript experience\",\n\t\"salary\": \"0\",\n\t\"salary_frequency\": \"HOUR\",\n\t\"salary_currency\": \"EUR\",\n\t\"location\" : \"Full Remote\",\n\t\"tags\" : [\"javascript\"]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_ab45fbd8abca47dbabee1cd0e8ca18c1"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_fa676590c908421a9994ab1c320ff117"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1710759450846,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_126ce2a4fc464c07a6b2ece4ba4aeab3","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036363445,"created":1698054725162,"url":"http://localhost:3000/api/organizations/3/admins/me","name":"RemoveOrganizationAdmin","description":"","method":"DELETE","body":{"mimeType":"application/json","text":""},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_96dd7956eedd4029a62a8953d48384fd"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_5b4b316379204e8a9f34ad6b8520cf02"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1698054725162,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9b2ccbca74214f0f9bbc602251635669","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036356402,"created":1697612039148,"url":"http://localhost:3000/api/organizations/6/admins","name":"AddOrganizationAdmin","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"person_id\" : \"3\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_7f6436f6c14046f881b4325c0401f678"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_17a5c397cc2d44d58a70ad0f3ef13d5b"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697612039148,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_25d08b1c63364d878c28a6cc67cacb6f","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036347784,"created":1697439750530,"url":"http://localhost:3000/api/organizations/posts/1","name":"DeleteOrganizationPost","description":"","method":"DELETE","body":{"mimeType":"application/json","text":""},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_1cf0a9865fc54eb28b06b007dcfb87b6"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_e116a62c90714a2fa936db757b86345a"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697439750530,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_72f048f133de490e8bae6c48c2c09b60","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036340614,"created":1697443352055,"url":"http://localhost:3000/api/organizations/6/posts/","name":"CreateOrganizationPost","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"content\" : \"Reach to us on Blink!\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_6e74726d8b9d4be883fb296363f27e4c"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_e355a0ac56664aaa95d1fba431f09a9c"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697439606468.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_41615e54d96647f5ba496c9c99fc7682","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1710928878955,"created":1710927856445,"url":"http://localhost:3000/api/organizations/filter","name":"FilterOrganizationByPrefix","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\" : \"bli\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1697439570453.125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_7aab411531e84b759ca24487db1b4db7","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036329079,"created":1697536019056,"url":"http://localhost:3000/api/organizations/1","name":"DeleteOrganization","description":"","method":"DELETE","body":{},"parameters":[],"headers":[{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_b65bf581b26e4d73b696c173b04c04a2"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697439534437.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_d870e4652d064749bc6b6975183e075c","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036318157,"created":1697722213218,"url":"http://localhost:3000/api/organizations/6","name":"UpdateOrganization","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"name\" : \"Blink Inc.\",\n\t\"location\" : \"Naples (Campania), Italy\",\n\t\"description\" : \"Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world. Think of it as an open-source alternative to LinkedIn.\",\n\"is_hiring\": true\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_fc5a2e2b439942a6ae18401fd037d0b9"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_164bb1219a27446fa2f897510640bb94"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697439516430.0625,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_98b0c23af41c4ba78fe513be0d08f536","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1710925416129,"created":1697614353582,"url":"http://localhost:3000/api/organizations/6","name":"GetOrganization","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_bf5a8e159b4440ad92054d78cf787432"}],"authentication":{},"metaSortKey":-1697439498422.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b2e4dd19d56f4d0687da6dbc70af37fc","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711379141901,"created":1697439462407,"url":"http://localhost:3000/api/organizations","name":"CreateOrganization","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\" : \"Blink Inc.\",\n\t\"location\" : \"Napoli, Italy\",\n\t\"description\" : \"Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world.\",\n\t\"is_hiring\" : true\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_e97d33e8311c469d9930459e52897eea"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_d25e174d5f1f4268a348f03b3df16cb7"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697439462407,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_11d1eccf5da64fc492928e5379f9c0bf","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711379126724,"created":1711375489614,"url":"http://localhost:3000/api/resetpassword/reset","name":"ResetNewPassword","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"secret\": \"9bbfcfaf50b39e8408afd1673289dc01\",\n\t\"password\": \"my_new_password\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1697388392744.9062,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_fe542a4b23e64674af5b4ed27ed5fe6f","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711378085234,"created":1711367505034,"url":"http://localhost:3000/api/resetpassword/request","name":"RequestNewPassword","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"email\": \"john@mail.org\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1697337323082.8125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_8a6e15c60a6a4db3b7bcfff494400eeb","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036287819,"created":1697535452268,"url":"http://localhost:3000/api/persons/me","name":"DeletePerson","description":"","method":"DELETE","body":{},"parameters":[],"headers":[{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_f6ccd1a246fd4f468bc67d1d93aaeba9"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697235183758.625,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_27698b57da924af28de06deafcf6ddf7","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711036271486,"created":1697719914121,"url":"http://localhost:3000/api/persons/me","name":"UpdatePerson","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"display_name\": \"John Doe\",\n\t\"date_of_birth\": \"1970-01-01\",\n\t\"available\": \"false\",\n\t\"new_password\": \"password\",\n\t\"old_password\": \"password\",\n\t\"qualification\" : \"Software Engineer at Blink Inc.\",\n\t\"about_me\" : \"I am a passionate software developer, with great interest in science and maths\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_48550a7ad35b41778139f1efea6d6d52"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_050cd5497a3247779057ebfa8df9f7af"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697133044434.4375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_f083a7216bcb41309f5b4348db62f6b9","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711035929257,"created":1708354567080,"url":"http://localhost:3000/api/persons/me","name":"GetMyself","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_fbdfeef3bb9b45b0aaa4d137cd9cd56c"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"},"metaSortKey":-1697081974772.3438,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_664ec4dd847d4ef9a05b4c8eccf15709","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1710923588855,"created":1697452790733,"url":"http://localhost:3000/api/persons/2/details","name":"GetPerson","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_f979eeb78d5d484b87bb2142931bfe88"}],"authentication":{},"metaSortKey":-1697030905110.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_85f92262c9a04bfcaa9d48cac64c7c18","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1710326148436,"created":1709544547074,"url":"http://localhost:3000/api/persons/me/activation?q=3ac9c204de1676b54163ed8015c7af00","name":"ActivatePerson","description":"","method":"GET","body":{"mimeType":"application/json","text":""},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1696826626461.875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_400198ced7364849b18f41b2172fe94c","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1711379108076,"created":1697439499759,"url":"http://localhost:3000/api/persons/me/token","name":"Login","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"email\": \"john@mail.org\",\n\t\"password\": \"password\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1696622347813.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c11bf4bc6da7425faa29ff689095f59f","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1710923566107,"created":1695805233220,"url":"http://localhost:3000/api/persons","name":"Register","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"email\" : \"john@mail.org\",\n\t\"password\" : \"password\",\n\t\"display_name\" : \"John Doe\",\n\t\"about_me\" : \"I am a passionate software engineer\",\n\t\"qualification\" : \"Software Engineer\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_4995c469a16542358ad1b61eb49793f1"},{"name":"User-Agent","value":"insomnia/2023.5.8","id":"pair_85a8fc0b1f9540cf9b89da7b801ec746"}],"authentication":{"type":"bearer"},"metaSortKey":-1695805233220,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_7437e477b4be4cc3a95e5674dcd23b36","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1695805230956,"created":1695805230956,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1695805230956,"_type":"environment"},{"_id":"jar_62d7227146f34b55bbf2121afb1e959d","parentId":"wrk_467396595b6f468aa658414cec14c306","modified":1695805230957,"created":1695805230957,"name":"Default Jar","cookies":[],"_type":"cookie_jar"}]} \ No newline at end of file +{ + "info": { + "name": "Blink", + "description": "", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "ActivatePerson", + "event": [], + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/persons/me/activation?q=3ac9c204de1676b54163ed8015c7af00", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "AddOrganizationAdmin", + "event": [], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/1/admins", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"personId\" : \"2\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "bruno", + "event": [] + }, + { + "name": "CreateApplication", + "event": [], + "request": { + "method": "POST", + "header": [], + "description": "", + "url": { + "raw": "http://localhost:3000/api/applications", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"jobOfferId\": 1\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "CreateJobOffer", + "event": [], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/1/joboffers", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"title\" : \"NodeJS developer\",\n \"description\" : \"We are looking for NodeJS developers which can help us build Blink\",\n \"salaryFrequency\": \"YEARLY\",\n \"salary\": [20000, 23000],\n \"salaryCurrency\": \"EUR\",\n \"location\" : \"Rome\",\n \"remote\": \"PARTIALLY\",\n \"contractType\": \"PART-TIME\",\n \"tags\" : [\"javascript\"]\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "CreateOrganization", + "event": [], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"name\" : \"Blink Inc.\",\n \"location\" : \"Napoli, Italy\",\n \"description\" : \"Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world.\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "DeleteJobOffer", + "event": [], + "request": { + "method": "DELETE", + "header": [ + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/joboffers/3", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + } + } + }, + { + "name": "DeleteOrganization", + "event": [], + "request": { + "method": "DELETE", + "header": [ + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/1", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + } + } + }, + { + "name": "DeletePerson", + "event": [], + "request": { + "method": "DELETE", + "header": [ + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/persons/me", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + } + } + }, + { + "name": "FilterOrganizationByPrefix", + "event": [], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/filter", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n\t\"name\" : \"bli\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "GetJobOffers", + "event": [], + "request": { + "method": "GET", + "header": [ + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/1/joboffers/", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + } + } + }, + { + "name": "GetMyself", + "event": [], + "request": { + "method": "GET", + "header": [ + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/persons/me", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + } + } + }, + { + "name": "GetOrganization", + "event": [], + "request": { + "method": "GET", + "header": [ + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/1", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + } + } + }, + { + "name": "GetPerson", + "event": [], + "request": { + "method": "GET", + "header": [ + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/persons/1/details", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + } + } + }, + { + "name": "Login", + "event": [], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/persons/me/token", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"email\": \"john@mail.org\",\n \"password\": \"password\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "Register", + "event": [], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/persons", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"email\" : \"john@mail.org\",\n \"password\" : \"password\",\n \"displayName\" : \"John Doe\",\n \"aboutMe\" : \"I am a passionate software engineer\",\n \"qualification\" : \"Software Engineer\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "RemoveOrganizationAdmin", + "event": [], + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/1/admins/me", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "RequestNewPassword", + "event": [], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/resetpassword/request", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n\t\"email\": \"john@mail.org\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "ResetNewPassword", + "event": [], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/resetpassword/reset", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"secret\": \"360837853e2d3cf799c709b44720b4e3\",\n \"password\": \"password\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "UpdateOrganization", + "event": [], + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/organizations/1", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"Blink Inc.\",\n \"location\": \"Naples (Campania), Italy\",\n \"description\": \"Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world. Think of it as an open-source alternative to LinkedIn.\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "UpdatePerson", + "event": [], + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "disabled": false, + "type": "default" + }, + { + "key": "User-Agent", + "value": "insomnia/2023.5.8", + "disabled": false, + "type": "default" + } + ], + "description": "", + "url": { + "raw": "http://localhost:3000/api/persons/me", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"displayName\": \"John Junior Doe III\",\n \"dateOfBirth\": \"1970-01-01\",\n \"openToWork\": \"false\",\n \"placeOfLiving\": \"Oslo, Norway\",\n \"aboutMe\": \"I am a passionate software engineer, but I also love art and music\",\n \"new_password\": \"password\",\n \"old_password\": \"password\",\n \"qualification\" : \"Software Engineer at Blink Inc. & Google LLC\",\n \"visibility\": \"EVERYONE\",\n \"oldPassword\": \"password\",\n \"newPassword\": \"password\"\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "GetMyApplications", + "event": [], + "request": { + "method": "GET", + "header": [], + "description": "", + "url": { + "raw": "http://localhost:3000/api/applications/myapplications", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + } + } + }, + { + "name": "DeleteApplication", + "event": [], + "request": { + "method": "DELETE", + "header": [], + "description": "", + "url": { + "raw": "http://localhost:3000/api/applications", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"jobApplicationId\": 1\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "GetApplicantsByOrganization", + "event": [], + "request": { + "method": "GET", + "header": [], + "description": "", + "url": { + "raw": "http://localhost:3000/api/applications/applicantsbyorganization", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"organizationId\": 1\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + }, + { + "name": "ChangeApplicationStatus", + "event": [], + "request": { + "method": "POST", + "header": [], + "description": "", + "url": { + "raw": "http://localhost:3000/api/applications", + "host": [ + "localhost" + ], + "path": [], + "query": [], + "variable": [] + }, + "body": { + "mode": "raw", + "raw": "{\n \"jobOfferId\": 1\n}", + "options": { + "raw": { + "language": "json" + } + } + } + } + } + ], + "variable": [] +} \ No newline at end of file diff --git a/backend/apis/README.md b/backend/apis/README.md index 7da723d..87238d3 100644 --- a/backend/apis/README.md +++ b/backend/apis/README.md @@ -11,7 +11,7 @@ In order to deploy the Blink APIs, follow these steps: ## Testing the APIs You can test the APIs in two ways: -* Open `BlinkApiUsageExample.json` with Insomnia or Bruno in order to have the collection of APIs already configured and ready to be seen in action; +* Open `BlinkApiUsageExample.json` with an API client (such as Insomnia, Bruno or Postman) in order to have the collection of APIs already configured and ready to be seen in action; * Run `npm test` in `./nodejs` to run a suite of automated tests. ## For Developers