diff --git a/backend/apis/BlinkApiUsageExampleBRUNO.json b/backend/apis/BlinkApiUsageExampleBRUNO.json index 56cc222..81693ee 100644 --- a/backend/apis/BlinkApiUsageExampleBRUNO.json +++ b/backend/apis/BlinkApiUsageExampleBRUNO.json @@ -5,6 +5,7 @@ { "type": "http", "name": "ActivatePerson", + "filename": "ActivatePerson.bru", "seq": 26, "request": { "url": "http://localhost:3000/api/people/me/activation?q=3ac9c204de1676b54163ed8015c7af00", @@ -33,12 +34,14 @@ "mode": "json", "json": "", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -47,6 +50,7 @@ { "type": "http", "name": "AddOrganizationAdmin", + "filename": "AddOrganizationAdmin.bru", "seq": 12, "request": { "url": "http://localhost:3000/api/organizations/1/admins", @@ -68,12 +72,14 @@ "mode": "json", "json": "{\n \"personId\" : \"2\"\n}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -82,6 +88,7 @@ { "type": "http", "name": "ChangeApplicationStatus", + "filename": "ChangeApplicationStatus.bru", "seq": 7, "request": { "url": "http://localhost:3000/api/organizations/joboffers/applications/5", @@ -92,12 +99,14 @@ "mode": "json", "json": "{\n \"status\": \"ACCEPTED\"\n}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -106,6 +115,7 @@ { "type": "http", "name": "CreateApplication", + "filename": "CreateApplication.bru", "seq": 10, "request": { "url": "http://localhost:3000/api/organizations/joboffers/1/applications", @@ -115,12 +125,14 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -129,6 +141,7 @@ { "type": "http", "name": "CreateJobOffer", + "filename": "CreateJobOffer.bru", "seq": 6, "request": { "url": "http://localhost:3000/api/organizations/1/joboffers", @@ -150,12 +163,14 @@ "mode": "json", "json": "{\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}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -164,6 +179,7 @@ { "type": "http", "name": "CreateOrganization", + "filename": "CreateOrganization.bru", "seq": 16, "request": { "url": "http://localhost:3000/api/organizations", @@ -185,20 +201,23 @@ "mode": "json", "json": "{\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}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { - "mode": "none" + "mode": "inherit" } } }, { "type": "http", "name": "DeleteApplication", + "filename": "DeleteApplication.bru", "seq": 9, "request": { "url": "http://localhost:3000/api/organizations/joboffers/applications/6", @@ -209,12 +228,14 @@ "mode": "json", "json": "{\n \"jobApplicationId\": 1\n}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -223,6 +244,7 @@ { "type": "http", "name": "DeleteContactInfo", + "filename": "DeleteContactInfo.bru", "seq": 18, "request": { "url": "http://localhost:3000/api/people/contactinfos/2", @@ -232,41 +254,14 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] - }, - "script": {}, - "vars": {}, - "assertions": [], - "tests": "", - "auth": { - "mode": "none" - } - } - }, - { - "type": "http", - "name": "DeleteOrganization", - "seq": 13, - "request": { - "url": "http://localhost:3000/api/organizations/1", - "method": "DELETE", - "headers": [ - { - "name": "User-Agent", - "value": "insomnia/2023.5.8", - "enabled": true - } - ], - "params": [], - "body": { - "mode": "none", - "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -275,6 +270,7 @@ { "type": "http", "name": "DeleteJobOffer", + "filename": "DeleteJobOffer.bru", "seq": 5, "request": { "url": "http://localhost:3000/api/organizations/joboffers/3", @@ -290,12 +286,46 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", + "auth": { + "mode": "none" + } + } + }, + { + "type": "http", + "name": "DeleteOrganization", + "filename": "DeleteOrganization.bru", + "seq": 13, + "request": { + "url": "http://localhost:3000/api/organizations/1", + "method": "DELETE", + "headers": [ + { + "name": "User-Agent", + "value": "insomnia/2023.5.8", + "enabled": true + } + ], + "params": [], + "body": { + "mode": "none", + "formUrlEncoded": [], + "multipartForm": [], + "file": [] + }, + "script": {}, + "vars": {}, + "assertions": [], + "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -304,6 +334,7 @@ { "type": "http", "name": "DeletePerson", + "filename": "DeletePerson.bru", "seq": 20, "request": { "url": "http://localhost:3000/api/people/me", @@ -319,12 +350,14 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -333,6 +366,7 @@ { "type": "http", "name": "FilterOrganizationByPrefix", + "filename": "FilterOrganizationByPrefix.bru", "seq": 1, "request": { "url": "http://localhost:3000/api/organizations/filter", @@ -354,12 +388,14 @@ "mode": "json", "json": "{\n \"name\" : \"bli\"\n}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -368,6 +404,7 @@ { "type": "http", "name": "GetApplicantsByJobOffer", + "filename": "GetApplicantsByJobOffer.bru", "seq": 2, "request": { "url": "http://localhost:3000/api/organizations/joboffers/1/applications", @@ -378,12 +415,14 @@ "mode": "json", "json": "", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -392,6 +431,7 @@ { "type": "http", "name": "GetApplicantsByOrganization", + "filename": "GetApplicantsByOrganization.bru", "seq": 3, "request": { "url": "http://localhost:3000/api/organizations/1/joboffers/applications", @@ -402,12 +442,14 @@ "mode": "json", "json": "", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -416,6 +458,7 @@ { "type": "http", "name": "GetContactInfosByPerson", + "filename": "GetContactInfosByPerson.bru", "seq": 17, "request": { "url": "http://localhost:3000/api/people/1/contactinfos", @@ -425,12 +468,14 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -439,6 +484,7 @@ { "type": "http", "name": "GetJobOffers", + "filename": "GetJobOffers.bru", "seq": 4, "request": { "url": "http://localhost:3000/api/organizations/1/joboffers/", @@ -454,12 +500,14 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -468,6 +516,7 @@ { "type": "http", "name": "GetMyApplications", + "filename": "GetMyApplications.bru", "seq": 8, "request": { "url": "http://localhost:3000/api/organizations/joboffers/applications/mine", @@ -477,12 +526,14 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -491,6 +542,7 @@ { "type": "http", "name": "GetMyself", + "filename": "GetMyself.bru", "seq": 21, "request": { "url": "http://localhost:3000/api/people/me", @@ -506,20 +558,23 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { - "mode": "none" + "mode": "inherit" } } }, { "type": "http", "name": "GetOrganization", + "filename": "GetOrganization.bru", "seq": 15, "request": { "url": "http://localhost:3000/api/organizations/1", @@ -535,12 +590,14 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -549,6 +606,7 @@ { "type": "http", "name": "GetPerson", + "filename": "GetPerson.bru", "seq": 22, "request": { "url": "http://localhost:3000/api/people/1/details", @@ -564,12 +622,14 @@ "body": { "mode": "none", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -578,29 +638,34 @@ { "type": "http", "name": "InsertContactInfo", + "filename": "InsertContactInfo.bru", "seq": 19, "request": { - "url": "http://localhost:3000/people/myself/contactinfos", + "url": "http://localhost:3000/api/people/myself/contactinfos", "method": "POST", "headers": [], "params": [], "body": { - "mode": "none", + "mode": "json", + "json": "{\n \"content\": \"www.john.com\",\n \"info_type\": \"WEBSITE\"\n}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { - "mode": "none" + "mode": "inherit" } } }, { "type": "http", "name": "Login", + "filename": "Login.bru", "seq": 27, "request": { "url": "http://localhost:3000/api/people/me/token", @@ -622,12 +687,14 @@ "mode": "json", "json": "{\n \"email\": \"john@mail.org\",\n \"password\": \"password\"\n}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -636,6 +703,7 @@ { "type": "http", "name": "Register", + "filename": "Register.bru", "seq": 28, "request": { "url": "http://localhost:3000/api/people", @@ -657,12 +725,14 @@ "mode": "json", "json": "{\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}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -671,6 +741,7 @@ { "type": "http", "name": "RemoveOrganizationAdmin", + "filename": "RemoveOrganizationAdmin.bru", "seq": 11, "request": { "url": "http://localhost:3000/api/organizations/1/admins/me", @@ -692,47 +763,14 @@ "mode": "json", "json": "", "formUrlEncoded": [], - "multipartForm": [] - }, - "script": {}, - "vars": {}, - "assertions": [], - "tests": "", - "auth": { - "mode": "none" - } - } - }, - { - "type": "http", - "name": "ResetNewPassword", - "seq": 23, - "request": { - "url": "http://localhost:3000/api/resetpassword/reset", - "method": "POST", - "headers": [ - { - "name": "Content-Type", - "value": "application/json", - "enabled": true - }, - { - "name": "User-Agent", - "value": "insomnia/2023.5.8", - "enabled": true - } - ], - "params": [], - "body": { - "mode": "json", - "json": "{\n \"secret\": \"360837853e2d3cf799c709b44720b4e3\",\n \"password\": \"password\"\n}", - "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -741,6 +779,7 @@ { "type": "http", "name": "RequestNewPassword", + "filename": "RequestNewPassword.bru", "seq": 24, "request": { "url": "http://localhost:3000/api/resetpassword/request", @@ -762,12 +801,52 @@ "mode": "json", "json": "{\n \"email\": \"john@mail.org\"\n}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", + "auth": { + "mode": "none" + } + } + }, + { + "type": "http", + "name": "ResetNewPassword", + "filename": "ResetNewPassword.bru", + "seq": 23, + "request": { + "url": "http://localhost:3000/api/resetpassword/reset", + "method": "POST", + "headers": [ + { + "name": "Content-Type", + "value": "application/json", + "enabled": true + }, + { + "name": "User-Agent", + "value": "insomnia/2023.5.8", + "enabled": true + } + ], + "params": [], + "body": { + "mode": "json", + "json": "{\n \"secret\": \"360837853e2d3cf799c709b44720b4e3\",\n \"password\": \"password\"\n}", + "formUrlEncoded": [], + "multipartForm": [], + "file": [] + }, + "script": {}, + "vars": {}, + "assertions": [], + "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -776,6 +855,7 @@ { "type": "http", "name": "UpdateOrganization", + "filename": "UpdateOrganization.bru", "seq": 14, "request": { "url": "http://localhost:3000/api/organizations/1", @@ -797,12 +877,14 @@ "mode": "json", "json": "{\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}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -811,6 +893,7 @@ { "type": "http", "name": "UpdatePerson", + "filename": "UpdatePerson.bru", "seq": 25, "request": { "url": "http://localhost:3000/api/people/me", @@ -832,12 +915,14 @@ "mode": "json", "json": "{\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}", "formUrlEncoded": [], - "multipartForm": [] + "multipartForm": [], + "file": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", + "docs": "", "auth": { "mode": "none" } @@ -845,10 +930,21 @@ }, { "type": "folder", - "name": "bruno" + "name": "bruno", + "filename": "bruno" } ], "environments": [], + "root": { + "request": { + "auth": { + "mode": "bearer", + "bearer": { + "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjMsImlhdCI6MTc0Mjg0Nzc2OCwiZXhwIjoxNzQyODc2NTY4fQ.XsjVJtU0nPhJBdnsepkLgCj-OCny9pMLl2CmDnotB2c" + } + } + } + }, "brunoConfig": { "version": "1", "name": "Blink",