{"info":{"_postman_id":"f470348f-67bf-4bac-9350-f4b40b9998f7","name":"Yottabyte","description":"<html><head></head><body><p>The <strong>Yottabyte REST API</strong> makes the connection between our clients (the website and the mobile app) and our server.</p>\n<p>You can use the whole API with only Postman, without the need of our clients. This documentation will help you getting started!</p>\n<h1 id=\"getting-started\">Getting Started</h1>\n<p>To start sending requests to the Yottabyte API, make sure that you have the right domain!</p>\n<p>For example, if you want to send requests to the production server, the domain will be:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>yottabyte.azurewebsites.net\n\n</code></pre><blockquote>\n<p>Or, if you want to use custom server, then change the domain to your own.</p>\n</blockquote>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting Started","slug":"getting-started"}],"owner":"14581342","collectionId":"f470348f-67bf-4bac-9350-f4b40b9998f7","publishedId":"UyxgHncX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-05-11T11:09:17.000Z"},"item":[{"name":"Yottabyte - User","item":[{"name":"Yottabyte - Register User","id":"b22560ba-cdc0-4a98-a6fa-98f3e8af262b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"FName","value":"Albena","type":"text","description":"<p>The first name of the user.</p>\n"},{"key":"LName","value":"Mihaylova","type":"text","description":"<p>The last name of the user.</p>\n"},{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"<p>The email of the user.</p>\n"},{"key":"Password","value":"VerySectretPassword123","type":"text","description":"<p>The password of the user.</p>\n"},{"key":"Avatar","type":"file","description":"<p>[Optional] Avatar of the user. If an avatar is not given, a random one will be chosen.</p>\n","src":"/C:/Users/SSIvanov19/Pictures/avatar.jpg","disabled":true}]},"url":"https://localhost:44397/api/users/register","description":"<p>The <strong>Yottabyte - Register User</strong> endpoint is used to register an user into our platform!</p>\n<p>You will get different response based on the data that you send. For example: a successful request will return:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-register-success\",\n    \"data\": null\n}\n\n</code></pre>\n<p>If there is problem with the validation, your response will be something similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.1\",\n    \"title\": \"One or more validation errors occurred.\",\n    \"status\": 400,\n    \"traceId\": \"00-73d93b845014194a98bacd360e80575d-cf726bc354db7b45-00\",\n    \"errors\": {\n        \"FName\": [\n            \"The field FName must match the regular expression '^(?=.*[A-ZAa-z])([A-Z])([a-z]{2,29})$'.\"\n        ]\n    }\n}\n\n</code></pre>\n<p>If there is problem with the file extension of the image, your response will be something similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-register-failure\",\n    \"data\": \"The file extension of avatar image is invalid\"\n}\n\n</code></pre>\n<p>If there is already a user with this username or email your response will be similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-register-failure\",\n    \"data\": \"There is already a user with this email\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","port":"44397","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"656f4034-bbc0-4b79-89bb-c8229c8b0c5a","name":"Yottabyte - Register User - Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"FName","value":"Albena","type":"text","description":"The first name of the user."},{"key":"LName","value":"Mihaylova","type":"text","description":"The last name of the user."},{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"The email of the user."},{"key":"Password","value":"VerySectretPassword123","type":"text","description":"The password of the user."},{"key":"Avatar","type":"file","description":"[Optional] Avatar of the user. If an avatar is not given, a random one will be chosen.","src":"/C:/Users/SSIvanov19/Pictures/avatar.jpg","disabled":true}]},"url":"https://localhost:44397/api/users/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 07:14:44 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"user-register-success\",\n    \"data\": null\n}"},{"id":"2d3cfcd4-26e2-432a-bc98-65c352616ac1","name":"Yottabyte - Register User - Validation Failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"FName","value":"albena","type":"text","description":"The first name of the user."},{"key":"LName","value":"Mihaylova","type":"text","description":"The last name of the user."},{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"The email of the user."},{"key":"Password","value":"VerySectretPassword123","type":"text","description":"The password of the user."},{"key":"Avatar","type":"file","description":"[Optional] Avatar of the user. If an avatar is not given, a random one will be chosen.","src":"/C:/Users/SSIvanov19/Pictures/avatar.jpg","disabled":true}]},"url":"https://localhost:44397/api/users/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/problem+json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 07:16:52 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.1\",\n    \"title\": \"One or more validation errors occurred.\",\n    \"status\": 400,\n    \"traceId\": \"00-73d93b845014194a98bacd360e80575d-cf726bc354db7b45-00\",\n    \"errors\": {\n        \"FName\": [\n            \"The field FName must match the regular expression '^(?=.*[A-ZAa-z])([A-Z])([a-z]{2,29})$'.\"\n        ]\n    }\n}"},{"id":"8c76860b-c683-4ed5-a23f-8e9c3afaae68","name":"Yottabyte - Register User - File Extension Failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"FName","value":"Albena","type":"text","description":"The first name of the user."},{"key":"LName","value":"Mihaylova","type":"text","description":"The last name of the user."},{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"The email of the user."},{"key":"Password","value":"VerySectretPassword123","type":"text","description":"The password of the user."},{"key":"Avatar","type":"file","description":"[Optional] Avatar of the user. If an avatar is not given, a random one will be chosen.","src":"/C:/Users/SSIvanov19/Videos/StoyanIvanov.pkt"}]},"url":"https://localhost:44397/api/users/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 07:24:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"user-register-failure\",\n    \"data\": \"The file extension of avatar image is invalid\"\n}"},{"id":"7a064c4d-5e66-4448-ac6b-10ac1a9e771d","name":"Yottabyte - Register User - Duplicate Failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"FName","value":"Albena","type":"text","description":"The first name of the user."},{"key":"LName","value":"Mihaylova","type":"text","description":"The last name of the user."},{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"The email of the user."},{"key":"Password","value":"VerySectretPassword123","type":"text","description":"The password of the user."},{"key":"Avatar","type":"file","description":"[Optional] Avatar of the user. If an avatar is not given, a random one will be chosen.","src":"/C:/Users/SSIvanov19/Pictures/avatar.jpg"}]},"url":"https://localhost:44397/api/users/register"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 07:32:25 GMT"},{"key":"Content-Length","value":"81"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"user-register-failure\",\n    \"data\": \"There is already a user with this email\"\n}"}],"_postman_id":"b22560ba-cdc0-4a98-a6fa-98f3e8af262b"},{"name":"Yottabyte - Login User","id":"453ba63d-60fc-4de9-bae1-9430cb27ccaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"<p>The email of the user.</p>\n"},{"key":"Password","value":"VerySectretPassword123","type":"text","description":"<p>The password of the user.</p>\n"}]},"url":"https://localhost:44397/api/users/login","description":"<p>The <strong>Yottabyte - Login User</strong> endpoint is used to login an user into our platform!</p>\n<p>You will get different response based on the data that you send. For example a successful request will return:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-login-success\",\n    \"data\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIymIisImlzQWRtaW32OihGmWxZzsEsIm5iZiI6MTY1MjI1NDY4NywiZXhwIjoxNjUyMzQxMDg3LCJpYXQiOjE2NTIyNTQ2ODd9.Z012_y0JMhfDjHRBCinApsO5pL7aCGyghLHBGDunSoA\"\n}\n\n</code></pre>\n<blockquote>\n<p>The data field holds the JWT Token for this user.</p>\n</blockquote>\n<p>If there is problem with the validation, your response will be something similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.1\",\n    \"title\": \"One or more validation errors occurred.\",\n    \"status\": 400,\n    \"traceId\": \"00-73d93b845014194a98bacd360e80575d-cf726bc354db7b45-00\",\n    \"errors\": {\n        \"FName\": [\n            \"The field FName must match the regular expression '^(?=.*[A-ZAa-z])([A-Z])([a-z]{2,29})$'.\"\n        ]\n    }\n}\n\n</code></pre>\n<p>If the email is incorrect your response will be similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-login-failure\",\n    \"data\": \"There isn't a user with this email!\"\n}\n\n</code></pre>\n<p>If the password is incorrect your response will be similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-login-failure\",\n    \"data\": \"The password is incorrect!\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","port":"44397","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"db51bf8d-c665-475b-97dd-29828fa7c914","name":"Yottabyte - Login User - Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"The email of the user."},{"key":"Password","value":"VerySectretPassword123","type":"text","description":"The password of the user."}]},"url":"https://localhost:44397/api/users/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 07:38:07 GMT"},{"key":"Content-Length","value":"228"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"user-login-success\",\n    \"data\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyMiIsImlzQWRtaW4iOiJGYWxzZSIsIm5iZiI6MTY1MjI1NDY4NywiZXhwIjoxNjUyMzQxMDg3LCJpYXQiOjE2NTIyNTQ2ODd9.Z012_y0JMhfDjHRBCinApsO5pL7aCGyghLHBGDunSoA\"\n}"},{"id":"594c3a96-4828-436e-b45f-fea961996915","name":"Yottabyte - Login User - Incorrect Email","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Email","value":"AMhaylova123@outlook.com","type":"text","description":"The email of the user."},{"key":"Password","value":"VerySectretPassword123","type":"text","description":"The password of the user."}]},"url":"https://localhost:44397/api/users/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 07:41:28 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"user-login-failure\",\n    \"data\": \"There isn't a user with this email!\"\n}"},{"id":"d42bc8ff-d907-4bea-8bc1-20fb4df8a4ae","name":"Yottabyte - Login User - Incorrect Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"The email of the user."},{"key":"Password","value":"verySectretPassword123","type":"text","description":"The password of the user."}]},"url":"https://localhost:44397/api/users/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 07:39:17 GMT"},{"key":"Content-Length","value":"65"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"user-login-failure\",\n    \"data\": \"The password is incorrect!\"\n}"}],"_postman_id":"453ba63d-60fc-4de9-bae1-9430cb27ccaf"},{"name":"Yottabyte - Get me","id":"b76ff683-5ce4-4371-834f-d96dd780e976","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://localhost:44397/api/users/:id","description":"<p>The <strong>Yottabyte - Get User with Id</strong> endpoint is used to get user information by the id of the user.</p>\n<blockquote>\n<p>This API endpoint is protected. You will need a valid JWT Token to access it. Such token can be taken from the login endpoint.</p>\n</blockquote>\n<p>You will get different response based on the data that you send. For example a successful request will return:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 23,\n    \"fName\": \"Albena\",\n    \"lName\": \"Mihaylova\",\n    \"email\": \"AMhaylova@outlook.com\",\n    \"avatarURL\": \"https://avatars.dicebear.com/api/identicon/1652266085,9873948.svg\"\n}\n\n</code></pre>\n<p>If no JWT Token is given, you response will be empty with status code of 401!</p>\n<p>If there isn't a user with this id, your response will be similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.4\",\n    \"title\": \"Not Found\",\n    \"status\": 404,\n    \"traceId\": \"00-dd4c096b360d6148a23114ced18b6aa2-41a84d277c97c542-00\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","port":"44397","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>The Id of the user</p>\n","type":"text/plain"},"type":"any","value":"24","key":"id"}]}},"response":[],"_postman_id":"b76ff683-5ce4-4371-834f-d96dd780e976"},{"name":"Yottabyte - Get User with Id","id":"b6f20625-14ee-449a-88ad-cec27d5dbded","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://localhost:44397/api/users/:id","description":"<p>The <strong>Yottabyte - Get User with Id</strong> endpoint is used to get user information by the id of the user.</p>\n<blockquote>\n<p>This API endpoint is protected. You will need a valid JWT Token to access it. Such token can be taken from the login endpoint.</p>\n</blockquote>\n<p>You will get different response based on the data that you send. For example a successful request will return:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 23,\n    \"fName\": \"Albena\",\n    \"lName\": \"Mihaylova\",\n    \"email\": \"AMhaylova@outlook.com\",\n    \"avatarURL\": \"https://avatars.dicebear.com/api/identicon/1652266085,9873948.svg\"\n}\n\n</code></pre>\n<p>If no JWT Token is given, you response will be empty with status code of 401!</p>\n<p>If there isn't a user with this id, your response will be similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.4\",\n    \"title\": \"Not Found\",\n    \"status\": 404,\n    \"traceId\": \"00-dd4c096b360d6148a23114ced18b6aa2-41a84d277c97c542-00\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","port":"44397","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>The Id of the user</p>\n","type":"text/plain"},"type":"any","value":"24","key":"id"}]}},"response":[{"id":"7c7a4c03-cd60-461b-8d0b-135c53ac1822","name":"Yottabyte - Get User with Id - Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://localhost:44397/api/users/:id","protocol":"https","host":["localhost"],"port":"44397","path":["api","users",":id"],"variable":[{"key":"id","value":"23","description":"The Id of the user"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 07:48:41 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 23,\n    \"fName\": \"Albena\",\n    \"lName\": \"Mihaylova\",\n    \"email\": \"AMhaylova@outlook.com\",\n    \"avatarURL\": \"https://avatars.dicebear.com/api/identicon/1652266085,9873948.svg\"\n}"},{"id":"c4287ecc-0b83-42f6-8872-d51c3a612ffb","name":"Yottabyte - Get User with Id - No JWT Token is given","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://localhost:44397/api/users/:id","protocol":"https","host":["localhost"],"port":"44397","path":["api","users",":id"],"variable":[{"key":"id","value":"23","description":"The Id of the user"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"WWW-Authenticate","value":"Bearer"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 08:03:54 GMT"}],"cookie":[],"responseTime":null,"body":null},{"id":"f9f39284-5666-48d6-a6cc-7da87645938d","name":"Yottabyte - Get User with Id - User Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://localhost:44397/api/users/:id","protocol":"https","host":["localhost"],"port":"44397","path":["api","users",":id"],"variable":[{"key":"id","value":"24","description":"The Id of the user"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/problem+json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 08:05:12 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.4\",\n    \"title\": \"Not Found\",\n    \"status\": 404,\n    \"traceId\": \"00-dd4c096b360d6148a23114ced18b6aa2-41a84d277c97c542-00\"\n}"}],"_postman_id":"b6f20625-14ee-449a-88ad-cec27d5dbded"},{"name":"Yottabyte - Get All Users","id":"ff9dd0c4-acfc-4375-8697-0ab607305e55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://localhost:5001/api/users/","description":"<p>The <strong>Yottabyte - Get All User</strong> endpoint is used to get all users information.</p>\n<blockquote>\n<p>This API endpoint is protected. You will need a valid JWT Token to access it. Such token can be taken from the login endpoint.</p>\n</blockquote>\n<p>You will get different response based on the data that you send. For example a successful request will return something similar to this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 19,\n        \"fName\": \"Pesho\",\n        \"lName\": \"Jaka\",\n        \"email\": \"PJaka@outlook.com\",\n        \"avatarURL\": \"https://media.discordapp.net/attachments/934036037922078754/943359321088090202/unknown.png\"\n    },\n    {\n        \"id\": 23,\n        \"fName\": \"Albena\",\n        \"lName\": \"Mihaylova\",\n        \"email\": \"AMhaylova@outlook.com\",\n        \"avatarURL\": \"https://avatars.dicebear.com/api/identicon/1652266085,9873948.svg\"\n    }\n]\n\n</code></pre>\n<p>If no JWT Token is given, you response will be empty with status code of 401!</p>\n","urlObject":{"protocol":"https","port":"5001","path":["api","users",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff9dd0c4-acfc-4375-8697-0ab607305e55"},{"name":"Yottabyte - Update User","id":"780ee65a-1799-42f7-aa46-c870cebde778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"FName","value":"Albena","type":"text","description":"<p>The first name of the user.</p>\n"},{"key":"LName","value":"Mihaylova","type":"text","description":"<p>The last name of the user.</p>\n"},{"key":"Email","value":"AMhaylova@outlook.com","type":"text","description":"<p>The email of the user.</p>\n"},{"key":"Password","value":"NewVerySectretPassword123","type":"text","description":"<p>The password of the user.</p>\n"},{"key":"Avatar","type":"file","description":"<p>[Optional] Avatar of the user. If an avatar is not given, a random one will be chosen.</p>\n","src":"/C:/Users/SSIvanov19/Pictures/avatar.jpg","disabled":true}]},"url":"https://localhost:44397/api/users/:id","description":"<p>The <strong>Yottabyte - Update User</strong> endpoint is used to update the user into our platform!</p>\n<blockquote>\n<p>This API endpoint is protected. You will need a valid JWT Token to access it. Such token can be taken from the login endpoint.</p>\n<p>Apart from users can not change other user information. Only admins can do that!</p>\n</blockquote>\n<p>You will get deferent response based on the data that you send. For example a successful request will return:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-update-success\",\n    \"data\": null\n}\n\n</code></pre>\n<p>If there is problem with the validation, your response will be something similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.1\",\n    \"title\": \"One or more validation errors occurred.\",\n    \"status\": 400,\n    \"traceId\": \"00-73d93b845014194a98bacd360e80575d-cf726bc354db7b45-00\",\n    \"errors\": {\n        \"FName\": [\n            \"The field FName must match the regular expression '^(?=.*[A-ZAa-z])([A-Z])([a-z]{2,29})$'.\"\n        ]\n    }\n}\n\n</code></pre>\n<p>If there is problem with the file extension of the image, your response will be something similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-update-failure\",\n    \"data\": \"The file extension of avatar image is invalid\"\n}\n\n</code></pre>\n<p>If you are not an admin and try to update other user info, you will get the following response:</p>\n","urlObject":{"protocol":"https","port":"44397","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>The Id of the user</p>\n","type":"text/plain"},"type":"any","value":"18","key":"id"}]}},"response":[],"_postman_id":"780ee65a-1799-42f7-aa46-c870cebde778"},{"name":"Yottabyte - Delete User","id":"510c36c1-47e3-46e3-8b89-ad1b22d9d6ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://localhost:44397/api/users/:id","description":"<p>The <strong>Yottabyte - Delete User</strong> endpoint is used to delete the user into our platform!</p>\n<blockquote>\n<p>This API endpoint is protected. You will need a valid JWT Token to access it. Such token can be taken from the login endpoint.</p>\n<p>Apart from this users can not delete other user information. Only admins can do that!</p>\n</blockquote>\n<p>You will get different response based on the data that you send. For example a successful request will return:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-deletion-success\",\n    \"data\": null\n}\n\n</code></pre>\n<p>If you are not an admin and try to delete other user info, you will get the following response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-deletion-failure\",\n    \"data\": \"The user isn't an admin\"\n}\n\n</code></pre>\n<p>If there isn't a user with this id, your response will be similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"user-deletion-failure\",\n    \"data\": \"There isn't a user with this id\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","port":"44397","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>The Id of the user</p>\n","type":"text/plain"},"type":"any","value":"23","key":"id"}]}},"response":[],"_postman_id":"510c36c1-47e3-46e3-8b89-ad1b22d9d6ab"}],"id":"0bc715c5-cf47-4745-b181-b2b4b048e60c","description":"<p>The <strong>Yottabyte - User</strong> folder holds all the the requests, connected to the user management.</p>\n","_postman_id":"0bc715c5-cf47-4745-b181-b2b4b048e60c"},{"name":"Yottabyte - Event","item":[{"name":"Yottabyte - Create New Event","id":"c77cfc2f-729b-4d9d-957a-222c89158eb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Long","value":"27.969800","type":"text","description":"<p>Longitude of the image</p>\n"},{"key":"Lat","value":"42.068988","type":"text","description":"<p>Latitude of the image</p>\n"},{"key":"Image","type":"file","description":"<p>The image of the beach</p>\n","src":"/C:/Users/SSIvanov19/Documents/pictures/pictures/unclear-7.png"}]},"url":"https://localhost:44397/api/events/createnewevent","description":"<p>The <strong>Yottabyte - Create New Event</strong> endpoint is used to create new event into our platform!</p>\n<p>You will get different response based on the data that you send. For example a successful request will return:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"event-create-success\",\n    \"data\": null\n}\n\n</code></pre>\n<p>If there is problem with the validation, your response will be something similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.1\",\n    \"title\": \"One or more validation errors occurred.\",\n    \"status\": 400,\n    \"traceId\": \"00-831eb91026ee1f4fb4ef9d3692ae7892-4b7e0128d33e6145-00\",\n    \"errors\": {\n        \"Lat\": [\n            \"The field Lat must match the regular expression '^(\\\\+|-)?(?:90(?:(?:\\\\.0{1,6})?)|(?:[0-9]|[1-8][0-9])(?:(?:\\\\.[0-9]{1,6})?))$'.\"\n        ],\n        \"Long\": [\n            \"The field Long must match the regular expression '^(\\\\+|-)?(?:180(?:(?:\\\\.0{1,6})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\\\\.[0-9]{1,6})?))$'.\"\n        ],\n        \"Image\": [\n            \"The Image field is required.\"\n        ]\n    }\n}\n\n</code></pre>\n<p>If there is problem with the file extension of the image, your response will be something similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"event-create-failure\",\n    \"data\": \"The file extension of the image is invalid\"\n}\n\n</code></pre>\n<p>If there is already an active event on this place, your response will be similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"event-create-failure\",\n    \"data\": \"There is already event in this place and it is active\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","port":"44397","path":["api","events","createnewevent"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9afe9709-677a-4b60-ad6f-098c017b6e1e","name":"Yottabyte - Create New Event - Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Long","value":"27.969800","type":"text"},{"key":"Lat","value":"42.068988","type":"text"},{"key":"Image","type":"file","src":"/C:/Users/SSIvanov19/Documents/pictures/pictures/unclear-9.png"}]},"url":"https://localhost:44397/api/events/createnewevent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 10:43:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"event-create-success\",\n    \"data\": null\n}"},{"id":"5cadc5fb-c405-4d59-90a7-cbb1c8e8a37b","name":"Yottabyte - Create New Event - Validation failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Long","value":"23,2","type":"text"},{"key":"Lat","value":"43,2","type":"text"},{"key":"Image","type":"file","value":null,"disabled":true}]},"url":"https://localhost:44397/api/events/createnewevent"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/problem+json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 09:39:07 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"https://tools.ietf.org/html/rfc7231#section-6.5.1\",\n    \"title\": \"One or more validation errors occurred.\",\n    \"status\": 400,\n    \"traceId\": \"00-831eb91026ee1f4fb4ef9d3692ae7892-4b7e0128d33e6145-00\",\n    \"errors\": {\n        \"Lat\": [\n            \"The field Lat must match the regular expression '^(\\\\+|-)?(?:90(?:(?:\\\\.0{1,6})?)|(?:[0-9]|[1-8][0-9])(?:(?:\\\\.[0-9]{1,6})?))$'.\"\n        ],\n        \"Long\": [\n            \"The field Long must match the regular expression '^(\\\\+|-)?(?:180(?:(?:\\\\.0{1,6})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\\\\.[0-9]{1,6})?))$'.\"\n        ],\n        \"Image\": [\n            \"The Image field is required.\"\n        ]\n    }\n}"},{"id":"9b626ce9-98ce-46b1-9271-b1431cde2e64","name":"Yottabyte - Create New Event - Invalid image","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Long","value":"28.969800","type":"text"},{"key":"Lat","value":"43.068988","type":"text"},{"key":"Image","type":"file","src":"/C:/Users/SSIvanov19/Pictures/museum icon.ico"}]},"url":"https://localhost:44397/api/events/createnewevent"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 10:51:52 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"event-create-failure\",\n    \"data\": \"The file extension of the image is invalid\"\n}"},{"id":"d2f2019e-3df6-4de6-915f-35108d2e9442","name":"Yottabyte - Create New Event - Duplicate of event","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Long","value":"27.969800","type":"text","description":"Longitude of the image"},{"key":"Lat","value":"42.068988","type":"text","description":"Latitude of the image"},{"key":"Image","type":"file","description":"The image of the beach","src":"/C:/Users/SSIvanov19/Documents/pictures/pictures/unclear-7.png"}]},"url":"https://localhost:44397/api/events/createnewevent"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 11 May 2022 10:56:38 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"event-create-failure\",\n    \"data\": \"There is already event in this place and it is active\"\n}"}],"_postman_id":"c77cfc2f-729b-4d9d-957a-222c89158eb9"},{"name":"Yottabyte - Get Event with Id","id":"dd059d66-f3e5-442c-8892-02711319791e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://localhost:44397/api/events/auth/1","urlObject":{"protocol":"https","port":"44397","path":["api","events","auth","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd059d66-f3e5-442c-8892-02711319791e"},{"name":"Yottabyte - Get All Events","id":"0ad676c9-c65d-4b1a-84b1-b2831d389862","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://yottabyte-server-test.azurewebsites.net/api/events/","urlObject":{"protocol":"https","path":["api","events",""],"host":["yottabyte-server-test","azurewebsites","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ad676c9-c65d-4b1a-84b1-b2831d389862"},{"name":"Yottabyte - Delete Event","id":"905c319a-2e0e-4ad4-997c-f19dbd9ab314","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://localhost:44397/api/events/:id","description":"<p>The <strong>Yottabyte - Event User</strong> endpoint is used to delete the user into our platform!</p>\n<blockquote>\n<p>This API endpoint is protected. You will need a valid JWT Token to access it. Such token can be taken from the login endpoint.</p>\n<p>Only admins can delete events!</p>\n</blockquote>\n<p>You will get different response based on the data that you send. For example a successful request will return:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"event-deletion-success\",\n    \"data\": null\n}\n\n</code></pre>\n<p>If you are not an admin and try to delete event, you will get the following response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"event-deletion-failure\",\n    \"data\": \"The user isn't an admin\"\n}\n\n</code></pre>\n<p>If there isn't an event with this id, your response will be similar to this one:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"event-deletion-failure\",\n    \"data\": \"There isn't an event with this id\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","port":"44397","path":["api","events",":id"],"host":["localhost"],"query":[],"variable":[{"description":{"content":"<p>Id of the event</p>\n","type":"text/plain"},"type":"any","value":"10","key":"id"}]}},"response":[],"_postman_id":"905c319a-2e0e-4ad4-997c-f19dbd9ab314"}],"id":"d2c7c774-b3fb-4c55-a501-73245d417298","description":"<p>The <strong>Yottabyte - Event</strong> folder holds all the the requests, connected to the event management.</p>\n","_postman_id":"d2c7c774-b3fb-4c55-a501-73245d417298"}]}