From 0803c81c351a0dd73c6b5334202a636a73d70004 Mon Sep 17 00:00:00 2001 From: Michael Pisman Date: Thu, 5 Oct 2023 00:10:09 -0600 Subject: [PATCH] chore: deleted postman folder --- .../Polling App | 0.0.4 | Documentation.json | 4627 ------- .../Polling App | 0.0.4 | Mock Driver.json | 8614 ------------- .../Polling App | 0.0.5 | Documentation.json | 10113 ---------------- .../Polling App | 0.0.5 | Mock Driver.json | 10113 ---------------- postman/schemas/index Copy.json | 92 - postman/schemas/index.json | 12 - 6 files changed, 33571 deletions(-) delete mode 100644 postman/collections/Polling App | 0.0.4 | Documentation.json delete mode 100644 postman/collections/Polling App | 0.0.4 | Mock Driver.json delete mode 100644 postman/collections/Polling App | 0.0.5 | Documentation.json delete mode 100644 postman/collections/Polling App | 0.0.5 | Mock Driver.json delete mode 100644 postman/schemas/index Copy.json delete mode 100644 postman/schemas/index.json diff --git a/postman/collections/Polling App | 0.0.4 | Documentation.json b/postman/collections/Polling App | 0.0.4 | Documentation.json deleted file mode 100644 index 9d8e00f..0000000 --- a/postman/collections/Polling App | 0.0.4 | Documentation.json +++ /dev/null @@ -1,4627 +0,0 @@ -{ - "info": { - "_postman_id": "83cda16b-c29c-495b-a867-5709ca7883d4", - "name": "Polling App | 0.0.4 | Documentation", - "description": "A REST API to manage users and polls", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_uid": "19614303-83cda16b-c29c-495b-a867-5709ca7883d4" - }, - "item": [ - { - "name": "groups", - "item": [ - { - "name": "{group_id}", - "item": [ - { - "name": "members", - "item": [ - { - "name": "Get Group Members", - "id": "4cc7c853-8b45-402b-9095-a61c7fc290c0", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "cddacb2e-488b-4413-9cfe-8c69d777b71f", - "name": "Get group members", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "9bda4720-9b48-4e00-ad62-a88b99f5966f", - "name": "Not found", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "556aa9fd-39da-4a0d-b6ce-89d02bf3e8aa", - "name": "Validation Error", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Add User To Group", - "id": "5ec66581-f645-409c-8e57-2594be9b62ce", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "Add member(s) to a group. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\nThe function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "response": [ - { - "id": "d8adc3a9-90ff-40eb-915a-3403b9a00e79", - "name": "Add user(s) to a group", - "originalRequest": { - "method": "POST", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"user1@example.com\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"user2@example.com\",\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "2f984896-0a5c-465c-98d5-124839278b15", - "name": "Not found", - "originalRequest": { - "method": "POST", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"user1@example.com\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"user2@example.com\",\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "4a4d8dbf-04ae-4c5a-90bf-618a32aa32b7", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"user1@example.com\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"user2@example.com\",\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "11c2f02e-a830-470a-b7b7-e95ec05fc05b" - }, - { - "name": "Get Group", - "id": "f9c8f95e-c965-4185-9f1f-0433c189c0d0", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "9a6a872a-72ee-41ac-b7d8-48c172d1dada", - "name": "Get group by id", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"name\": \"incididunt reprehenderit\",\n \"description\": \"amet laboris ut ullamco fugiat\",\n \"owner_name\": \"consequat dolore\",\n \"owner_email\": \"Tm8LJgryo@BCPLboBYFGg.qs\"\n}" - }, - { - "id": "886d696d-14a9-4e93-ac70-885e0eb43f7b", - "name": "Not found", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "379512e9-3043-4dde-8e67-87bc64b7bdb7", - "name": "Validation Error", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Delete Group", - "id": "d16b9580-8619-401d-a88a-21c08acd9f84", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "4dc30581-ed91-4533-af43-adec9af408a2", - "name": "Delete group", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "8cc1720d-04e7-4323-8ce2-69f2d8ced897", - "name": "Not found", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "516a3c30-a265-4b93-8235-4626621b0a2e", - "name": "Validation Error", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Owner", - "id": "7fe387a1-48ed-4b1b-bea4-e64e6a4a12ad", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "fdc746f2-052b-41b7-9dca-97b8ada0b7e6", - "name": "Get group owner", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"P4ApgZjeGO3Je8@ksbHeethodQVUEyChXPLHtpQ.gco\",\n \"first_name\": \"ex\",\n \"last_name\": \"laborum culpa anim adipisicing\"\n}" - }, - { - "id": "5d08fecb-c1e1-4d7e-9e4a-dc529eebf636", - "name": "Not found", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "2142b7b8-a8a8-442f-9d8e-81ea21dc2185", - "name": "Validation Error", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Admins", - "id": "515122a5-6a1e-4e92-b241-91bf870871be", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "b05b3d8a-df3c-47a6-9d6a-4cfea7ba27ee", - "name": "Get list of group administrators", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "f6a832a8-2546-4edb-94f5-dde8757b308a", - "name": "Not found", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "886b30da-c270-493a-ae1a-972bae40d00e", - "name": "Validation Error", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Users", - "id": "cf3ac1d9-e5ca-49f2-9d3c-989318b3633c", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "315fb96e-83de-427d-8e85-25320c575e6d", - "name": "Get group members", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "2186f60e-6bf4-4c44-9c01-c856f0d149ba", - "name": "Not found", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "e71a1b8e-e848-4544-b2f9-e7dd9f7de3cd", - "name": "Validation Error", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Remove User", - "id": "7dcb6016-620a-48c4-a4a6-eb9af723f75a", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:email", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":email" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "email", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "64ab62a4-1225-41ef-9d85-c2c97929302d", - "name": "Remove a member from a group", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:email", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":email" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "email", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "8ac1c9b2-2d2e-4fdc-8e79-6389582327c1", - "name": "Not found", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:email", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":email" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "email", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "de71c2df-0b4e-47b6-bd1a-b8f8740e554d", - "name": "Validation Error", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:email", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":email" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "email", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "f76e3ec0-d48e-4672-ac68-4f7b466fcdbc" - }, - { - "name": "List Groups", - "id": "6a865b21-4f09-478f-badf-cf51e2276c78", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - } - }, - "response": [ - { - "id": "8cba1002-e4db-4085-ad24-2f1c601ad7e8", - "name": "List all groups", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "e1493f78-efb4-4e74-8258-7ef60a6cc92e", - "name": "Not found", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "50a9edad-d4de-43b2-aef0-c213245e30ef", - "name": "Validation Error", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"dolor ad\",\n \"mollit cillum officia\"\n ],\n \"msg\": \"est consectetur aute veniam\",\n \"type\": \"amet reprehenderit tempor irure nisi\"\n },\n {\n \"loc\": [\n \"pariatur Duis ex \",\n \"reprehenderit laborum ut\"\n ],\n \"msg\": \"ea\",\n \"type\": \"qui\"\n }\n ]\n}" - } - ] - }, - { - "name": "Create Group", - "id": "3fdcacd2-57bc-4d5d-a27f-cede45f956ed", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - } - }, - "response": [ - { - "id": "039c0746-8907-4674-8327-7b4d6081dded", - "name": "Create new group", - "originalRequest": { - "method": "POST", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"My first Group\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - } - }, - "status": "Created", - "code": 201, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"id\": \"aute Exce\",\n \"name\": \"in culpa cillum ut\",\n \"message\": \"Group created successfully\"\n}" - }, - { - "id": "b46a9977-a9b8-4cd0-88ed-7c153162fb7a", - "name": "Not found", - "originalRequest": { - "method": "POST", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"My first Group\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "c6248a54-ea88-4c6f-af79-bc3b9852040d", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"My first Group\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Update Group", - "id": "d3315db2-ed8c-4b23-9107-2c1c09006bd5", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "61441421-cdf5-4c1a-bff2-b23c8b7d2fd0", - "name": "Update a group", - "originalRequest": { - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "\"laboris laborum consequat in\"" - }, - { - "id": "4b7dfe82-3bbc-4f26-8522-81d0984295ab", - "name": "Not found", - "originalRequest": { - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "00eb9d1e-9c43-4cce-95d0-eb11f3c71390", - "name": "Validation Error", - "originalRequest": { - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "e823a319-f790-4d08-94cb-753bf669e74e" - }, - { - "name": "users", - "item": [ - { - "name": "me", - "item": [ - { - "name": "Users:Current User", - "id": "7bbc36e9-19ea-49d2-b97d-6d95a25f6603", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "response": [ - { - "id": "cef7592a-aeaf-430d-ac5e-c2cb5a90cd83", - "name": "Successful Response", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"KySeg@IJkYDACiXLckLtGoaOzQAJfjFhp.amt\",\n \"first_name\": \"aliquip Lorem do\",\n \"last_name\": \"dolore adipisicing nulla\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "af11ba73-c6c7-457b-9aab-07925fd42222", - "name": "Missing token or inactive user.", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - } - ] - }, - { - "name": "Users:Patch Current User", - "id": "36dab0d8-8ca8-4bc4-8efd-d071de826c85", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "response": [ - { - "id": "71ba4436-c653-4a8a-ae83-e117da851ea4", - "name": "Successful Response", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"KySeg@IJkYDACiXLckLtGoaOzQAJfjFhp.amt\",\n \"first_name\": \"aliquip Lorem do\",\n \"last_name\": \"dolore adipisicing nulla\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "0840d186-9fcd-4d44-84b3-718ebe24ef5e", - "name": "Bad Request", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"UPDATE_USER_EMAIL_ALREADY_EXISTS\"\n}" - }, - { - "id": "722a0c08-d538-4ed7-9519-1c2be46254aa", - "name": "Missing token or inactive user.", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "ace2d3cd-6d87-4883-bf6b-a0ccc8115d0c", - "name": "Validation Error", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "dc8b5a5e-2c25-4b36-9ef3-f55d23534df5" - }, - { - "name": "{id}", - "item": [ - { - "name": "Users:User", - "id": "cc8beec2-75e3-403f-9672-2d9e6899b06d", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "6dc2121f-9d9e-4f08-ae57-115823ae3d21", - "name": "Successful Response", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"KySeg@IJkYDACiXLckLtGoaOzQAJfjFhp.amt\",\n \"first_name\": \"aliquip Lorem do\",\n \"last_name\": \"dolore adipisicing nulla\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "bd53bd09-5a0d-4ba5-8631-ec7a604d764d", - "name": "Missing token or inactive user.", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "452ab7b9-d94e-4742-900a-e87e771eb787", - "name": "Not a superuser.", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "ebf1c0e0-888f-451f-9079-3705a673c580", - "name": "The user does not exist.", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "93d3bede-5ccd-421d-9e4d-8c07785c15a5", - "name": "Validation Error", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Users:Delete User", - "id": "c479930d-582a-422b-8f3a-c9bec74d9ef4", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "3bf2e2ab-9558-4ba5-a4ff-f2f820e296e4", - "name": "Successful Response", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "No Content", - "code": 204, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "7a0413d1-0ebc-4a68-bbdd-25cd882d8d47", - "name": "Missing token or inactive user.", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "e8d20ed6-7091-471d-b948-2f53a778309c", - "name": "Not a superuser.", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "2065cd7d-659b-4597-acd0-976ed6ea4a50", - "name": "The user does not exist.", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "0ec036c7-9581-4773-bb10-a10eab481e41", - "name": "Validation Error", - "originalRequest": { - "method": "DELETE", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Users:Patch User", - "id": "c4d9cae6-78ee-4851-a7f5-5addf574554b", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "23cbbf02-f758-463b-9a45-888a026452f3", - "name": "Successful Response", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"KySeg@IJkYDACiXLckLtGoaOzQAJfjFhp.amt\",\n \"first_name\": \"aliquip Lorem do\",\n \"last_name\": \"dolore adipisicing nulla\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "f74a2a85-b8f6-4ace-94e4-6ee907198788", - "name": "Bad Request", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"UPDATE_USER_EMAIL_ALREADY_EXISTS\"\n}" - }, - { - "id": "3f74178e-b31b-4698-8d8f-42c858a39146", - "name": "Missing token or inactive user.", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "2fd4691a-809e-4a07-b8c8-aa4bf0a50b29", - "name": "Not a superuser.", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "615e7bbd-76a5-48a9-b1aa-a7f3f3847ef3", - "name": "The user does not exist.", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "039a70c9-a64f-43e0-832a-661cf75b1cd0", - "name": "Validation Error", - "originalRequest": { - "method": "PATCH", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "d0a5273c-3d5d-4de1-b4e4-605f2136fd17" - }, - { - "name": "List User Groups", - "id": "ba94d84b-1df8-4c65-a299-166f668c5f84", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups?user_id=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ], - "query": [ - { - "key": "user_id", - "value": "" - } - ] - } - }, - "response": [ - { - "id": "1f8f4b7e-fead-41cc-a59a-c207f715b851", - "name": "List all groups that a user is a member of", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups?user_id=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ], - "query": [ - { - "key": "user_id", - "value": "" - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "0d7412a7-3e97-452a-946d-dcbf7914b450", - "name": "Not found", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups?user_id=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ], - "query": [ - { - "key": "user_id", - "value": "" - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "441b0338-e52e-4790-b3b6-8d298e6fbe49", - "name": "Validation Error", - "originalRequest": { - "method": "GET", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups?user_id=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ], - "query": [ - { - "key": "user_id", - "value": "" - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "1b40cd51-561a-4b03-a13d-88d551659cea" - }, - { - "name": "auth", - "item": [ - { - "name": "jwt", - "item": [ - { - "name": "Auth:Jwt.Login", - "id": "75f94a9b-4cc8-4902-b6c8-dc313a7eb7a6", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "key": "username", - "value": "", - "description": "(Required) " - }, - { - "key": "password", - "value": "", - "description": "(Required) " - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "response": [ - { - "id": "a68699a4-8626-4554-8a1d-c41f828dc124", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOTIyMWZmYzktNjQwZi00MzcyLTg2ZDMtY2U2NDJjYmE1NjAzIiwiYXVkIjoiZmFzdGFwaS11c2VyczphdXRoIiwiZXhwIjoxNTcxNTA0MTkzfQ.M10bjOe45I5Ncu_uXvOmVV8QxnL-nZfcH96U90JaocI\",\n \"token_type\": \"bearer\"\n}" - }, - { - "id": "0f5a2735-8ae7-4bd4-a924-8f43e1de3c77", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"LOGIN_BAD_CREDENTIALS\"\n}" - }, - { - "id": "3f211232-809d-4ec1-bc27-7dedec376e41", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Auth:Jwt.Logout", - "id": "cdf5c672-1872-4f15-ad00-99a82ec9dcd1", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "response": [ - { - "id": "6949138f-440c-436b-bf18-ff619cf84678", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "a4bbcb13-3a8e-4f7e-b41b-4cd4cc9fb324", - "name": "Missing token or inactive user.", - "originalRequest": { - "method": "POST", - "header": [ - { - "description": "Added as a part of security scheme: oauth2", - "key": "Authorization", - "value": "" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - } - ] - } - ], - "id": "90110b90-6776-439a-b344-dd98b3a5d3ed" - }, - { - "name": "Register:Register", - "id": "9f5d556d-8296-439f-ae2f-744c63570161", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"\",\n \"last_name\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "response": [ - { - "id": "4993a10e-04b9-4a07-aedb-2e415150bfdd", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"user@example.com\",\n \"password\": \"pass1234\",\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Created", - "code": 201, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"KySeg@IJkYDACiXLckLtGoaOzQAJfjFhp.amt\",\n \"first_name\": \"aliquip Lorem do\",\n \"last_name\": \"dolore adipisicing nulla\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "6370c7cb-dda0-44c8-8d44-cd66ea19620c", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"user@example.com\",\n \"password\": \"pass1234\",\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"REGISTER_USER_ALREADY_EXISTS\"\n}" - }, - { - "id": "80fadaee-e4dc-4972-9679-20e7307b2527", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"user@example.com\",\n \"password\": \"pass1234\",\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Reset:Forgot Password", - "id": "603e4c35-8985-4ec7-b4c4-e9d63c576a5e", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "response": [ - { - "id": "32bc0e62-214b-4471-8037-a855f255efc7", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "status": "Accepted", - "code": 202, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "4d1a331e-04eb-4ca9-a9f7-8847acac45f7", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Reset:Reset Password", - "id": "3d8a20d7-b93e-4877-8cd6-b9bd75e9c92e", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "response": [ - { - "id": "faf47ab6-bbdc-4017-ae8c-ab943071301a", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "0c4172c8-1187-4d31-a304-c57ea3ff1328", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"RESET_PASSWORD_BAD_TOKEN\"\n}" - }, - { - "id": "a9b6de29-fedc-4879-aa88-4f580bbea560", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Verify:Request-Token", - "id": "5fb639bc-c36d-479b-885d-c2c93c643665", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "response": [ - { - "id": "2464ab12-daf7-410d-8e5d-3773c8ae9e14", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "status": "Accepted", - "code": 202, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "2d3be49a-9996-42ef-85db-b584ab390760", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Verify:Verify", - "id": "cca3e851-6622-4660-85ee-a512e651553d", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "response": [ - { - "id": "14fa1e76-8fad-4b04-b9fc-d67c31dbcc95", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"KySeg@IJkYDACiXLckLtGoaOzQAJfjFhp.amt\",\n \"first_name\": \"aliquip Lorem do\",\n \"last_name\": \"dolore adipisicing nulla\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "69d37779-0eb7-463f-bfda-13b97164a428", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"VERIFY_USER_BAD_TOKEN\"\n}" - }, - { - "id": "d89b59b9-1fd2-477d-8453-2ebd3f3d60e2", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non id commodo reprehenderit\",\n \"est qui sed\"\n ],\n \"msg\": \"dolore et magna sint\",\n \"type\": \"nisi Ut\"\n },\n {\n \"loc\": [\n \"sed eu dolor\",\n \"cillum quis sit mollit\"\n ],\n \"msg\": \"ullamco con\",\n \"type\": \"dolor aliqua dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "c7e2bd96-1263-46e1-811b-3c50ea76d4ef" - } - ], - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "addTokenTo", - "value": "header", - "type": "string" - } - ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "id": "f89c7617-63e9-4a00-9af2-ec80524ed2a1", - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "id": "8feff6aa-c7e9-471e-a500-fd00e11b7495", - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "variable": [ - { - "id": "f6afbd3a-7c68-40ee-93e3-611eb7c8a532", - "key": "baseUrl", - "value": "/", - "type": "string" - } - ] -} \ No newline at end of file diff --git a/postman/collections/Polling App | 0.0.4 | Mock Driver.json b/postman/collections/Polling App | 0.0.4 | Mock Driver.json deleted file mode 100644 index 3bc7f4c..0000000 --- a/postman/collections/Polling App | 0.0.4 | Mock Driver.json +++ /dev/null @@ -1,8614 +0,0 @@ -{ - "info": { - "_postman_id": "5f0b2160-9961-4405-a9a4-6ba8bb07152b", - "name": "Polling App | 0.0.4 | Mock Driver", - "description": "A REST API to manage users and polls", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_uid": "19614303-5f0b2160-9961-4405-a9a4-6ba8bb07152b" - }, - "item": [ - { - "name": "groups", - "item": [ - { - "name": "{group_id}", - "item": [ - { - "name": "members", - "item": [ - { - "name": "Get Group Members", - "id": "d967e3f6-dec9-4fd9-b8df-e1b6ea587cbc", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "229a33b0-7d48-428e-9abb-c4f6d3a88957", - "name": "Get group members", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "b67db493-3ab4-4b69-ace5-66b62576d44c", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "817e1b32-71d2-41d5-a907-e0d8dfbc9a04", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Add User To Group", - "id": "d417c31a-ae2f-42ce-835d-beded265ea8d", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "Add member(s) to a group. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\nThe function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "response": [ - { - "id": "fe210be5-6242-44ad-8b35-882e1ee47392", - "name": "Add user(s) to a group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "Add member(s) to a group. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\nThe function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "779edadb-88bd-4cc8-98bf-8afe219fe164", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "Add member(s) to a group. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\nThe function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "01c132d7-f89f-4950-ad78-ef077ad5316c", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "Add member(s) to a group. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\nThe function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - } - ], - "id": "4448de37-9e1e-4672-a1c9-87468f3e2a12" - }, - { - "name": "Get Group", - "id": "99a915ff-a971-45b5-9d11-56e6730e394d", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "191f06ac-b45b-4b9c-9ae2-e681faa55237", - "name": "Get group by id", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"name\": \"et fugiat aliqua eu\",\n \"description\": \"nostrud\",\n \"owner_name\": \"ad culpa elit amet\",\n \"owner_email\": \"7Dm8joyvZLw@RrYKJwTSxetWAO.dvjn\"\n}" - }, - { - "id": "17605164-c7a0-4690-a10f-457b68a38799", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "5879da65-64ee-4c69-a281-1fbca56085df", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Delete Group", - "id": "91987e0b-8504-4001-a4dc-04025c6f0424", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "a7f26167-77a2-4ceb-8987-3ee1703a3d70", - "name": "Delete group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "8830a3af-99fe-4600-b07a-4d159afdef3c", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "aea0219d-c41e-407a-971d-67d8aa0045a4", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Owner", - "id": "e7869c5e-6994-484a-99bf-1f4e111a9a51", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "13785fe4-0a1d-4de3-b8d6-9f6b87d391be", - "name": "Get group owner", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"AnkrSV@JCYlePgrqKOAwknjgunTgMId.zm\",\n \"first_name\": \"occaecat commodo cupidatat aute\",\n \"last_name\": \"ut\"\n}" - }, - { - "id": "7c00fe42-bea8-47a6-a1e8-76ab27fcd2d7", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "9c5d47f8-b8b0-45ab-b1af-1ac2c3752386", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Admins", - "id": "881e6a8f-7b92-4cdb-b62c-3b98362d2dd7", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "4a829f5d-9c92-48a8-bdef-5388f9f866e1", - "name": "Get list of group administrators", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "e649c04e-ad52-49a1-9ee9-5a944492f02b", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "a515fbdf-48b3-41c0-ba98-08c2c0adced4", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Users", - "id": "5794a6d2-215c-4a59-8b92-454249a59e0a", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "31efded6-6af6-4941-9429-45175eb5be2a", - "name": "Get group members", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "6e613e4d-2049-4e5b-b164-f94476d8b111", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "f9d300c8-1109-4e8b-8255-dce68cbe7df3", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Remove User", - "id": "107f94cf-19f4-4cae-9fab-89e5075295b3", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:email", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":email" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "email", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "9caf8fe2-af26-4a57-b937-36ae16c9bc0a", - "name": "Remove a member from a group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:email", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":email" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "email", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "bed6ec71-c8b2-49d8-9842-bdcd60f46b63", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:email", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":email" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "email", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "bb478a56-0772-4218-9d65-a539ef82dedb", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:email", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":email" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "email", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - } - ], - "id": "4aad3ba1-14d0-4c22-9225-75bcf932be42" - }, - { - "name": "List Groups", - "id": "1f624ebd-0ad3-4a6e-aad6-a7dbaa578169", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - } - }, - "response": [ - { - "id": "1857a9f4-8436-4659-94be-2f45e90b366f", - "name": "List all groups", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "f98c5509-a23a-4e9a-b14a-7e56a78f04bd", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "d14f57be-4493-4009-a091-45e8df23453f", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"non sint magna pariat\",\n \"ullamco anim\"\n ],\n \"msg\": \"sit magna voluptate\",\n \"type\": \"culpa esse\"\n },\n {\n \"loc\": [\n \"dolor sit\",\n \"dolore cupidatat pariatur sit in\"\n ],\n \"msg\": \"consectetur\",\n \"type\": \"proide\"\n }\n ]\n}" - } - ] - }, - { - "name": "Create Group", - "id": "2d9791e9-3d33-48b4-9f9d-b1a3d08a5b1c", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - } - }, - "response": [ - { - "id": "baaad9e1-c192-42d2-9df6-b5a6ee4103f3", - "name": "Create new group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - } - }, - "status": "Created", - "code": 201, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"id\": \"Excepteur\",\n \"name\": \"et sunt\",\n \"message\": \"Group created successfully\"\n}" - }, - { - "id": "2a1fb5bf-4953-4b6d-b69e-147fe127a3e0", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "08f3d6d5-3d10-47b9-bcff-b535e408c2e7", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Update Group", - "id": "9766f513-bb3e-426c-87a6-aa0f376d12ee", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "43bea0ec-ae9d-4379-98c6-0eb9fa8eee63", - "name": "Update a group", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "\"ea ullamco ut\"" - }, - { - "id": "5bdd4a10-d1e0-45bb-8199-111609ada38b", - "name": "Not found", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "f0a0383a-0ddd-498d-805f-6dbb2e61be95", - "name": "Validation Error", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - } - ], - "id": "c6b62dd7-044f-4b19-b427-2381f71ce2d8" - }, - { - "name": "users", - "item": [ - { - "name": "me", - "item": [ - { - "name": "Users:Current User", - "id": "bb393c1c-59c6-44a3-8ea1-a9371d0e8745", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "response": [ - { - "id": "863cb282-8a7c-4b9f-b6e0-0e39d81987a2", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"dRJBvfI3bLm8NxA@ZSjDdCxlZhMGhxCcqZEAkNPJhL.tq\",\n \"first_name\": \"et minim\",\n \"last_name\": \"elit ad\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "c66137a3-06b5-46e0-a089-2c3a56c9d8d7", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - } - ] - }, - { - "name": "Users:Patch Current User", - "id": "e31eb336-7b4e-4be3-a3e6-f7e39bedf958", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "response": [ - { - "id": "62f11d55-6be8-4a61-8793-d2c375e54dbc", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"dRJBvfI3bLm8NxA@ZSjDdCxlZhMGhxCcqZEAkNPJhL.tq\",\n \"first_name\": \"et minim\",\n \"last_name\": \"elit ad\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "ccff7142-6f99-452c-a38e-f5ababf3a3ba", - "name": "Bad Request", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"UPDATE_USER_EMAIL_ALREADY_EXISTS\"\n}" - }, - { - "id": "fe7d8af4-19c9-44b3-a6b7-1b27d0102e2d", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "59571c14-0c0c-42ff-9aed-3c1bc35e144b", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - } - ], - "id": "f69ae5ab-4844-4d0d-9e9c-c0235fc48f4d" - }, - { - "name": "{id}", - "item": [ - { - "name": "Users:User", - "id": "c253f807-7e70-424b-ac90-a742ae55e715", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "51ba8945-8da1-442c-b3d1-9ba334009020", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"dRJBvfI3bLm8NxA@ZSjDdCxlZhMGhxCcqZEAkNPJhL.tq\",\n \"first_name\": \"et minim\",\n \"last_name\": \"elit ad\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "b988832e-5766-4498-aa00-95122333a645", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "db792a37-83a8-428e-b16e-8d9b1f330b6c", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "14b47c52-1448-4586-82fb-ee40d6155a61", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "bc0be09c-684a-429a-973a-d4297783e242", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Users:Delete User", - "id": "2da8a352-af1e-427e-a467-5f34702dae49", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "353c57be-b40f-4ac2-83c2-f9ea61485ec0", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "No Content", - "code": 204, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "fff8722d-0d47-42c9-84c7-5c4b0a671fd5", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "a2a0bfc6-cad1-48fa-9811-cddb014e7bec", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "45472f79-a698-45c2-a1fd-257409e73ea0", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "2fe53d50-94cd-4b98-b54c-a8fbab069c1b", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Users:Patch User", - "id": "fad405e9-94ad-447b-8949-438ead7f9e02", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "c539cfdc-ebac-4636-a814-84af13ed7bcb", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"dRJBvfI3bLm8NxA@ZSjDdCxlZhMGhxCcqZEAkNPJhL.tq\",\n \"first_name\": \"et minim\",\n \"last_name\": \"elit ad\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "5f4c19b4-5aca-418b-85fd-0308889f93c5", - "name": "Bad Request", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"UPDATE_USER_EMAIL_ALREADY_EXISTS\"\n}" - }, - { - "id": "0c95986b-230b-46c7-84ab-bcd1634bb44d", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "62898155-ab16-48bb-9278-8a5e3ca92c6a", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "0652fc68-af4b-4dde-a4a6-4577ba88adcc", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "39c80b2e-9573-4f52-9c11-4f2f96e313aa", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - } - ], - "id": "06bcfc80-21d2-4458-b640-56fba9f57eaa" - }, - { - "name": "List User Groups", - "id": "dd52c19e-1509-417d-89df-c023cafbc415", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups?user_id=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ], - "query": [ - { - "key": "user_id", - "value": "" - } - ] - } - }, - "response": [ - { - "id": "8753d78b-1975-469c-a4ae-17b959869283", - "name": "List all groups that a user is a member of", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups?user_id=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ], - "query": [ - { - "key": "user_id", - "value": "" - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "3e35d18c-6b43-422d-b332-f081b3741d29", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups?user_id=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ], - "query": [ - { - "key": "user_id", - "value": "" - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - }, - { - "id": "e912c2c5-b8b2-4ee8-b0ec-df514e577b3d", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups?user_id=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ], - "query": [ - { - "key": "user_id", - "value": "" - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - } - ], - "id": "8f17b8c8-7f5d-418a-ab2b-90d211d3e676" - }, - { - "name": "auth", - "item": [ - { - "name": "jwt", - "item": [ - { - "name": "Auth:Jwt.Login", - "id": "0f364d13-f325-4cea-b510-8bfcada63da1", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "key": "username", - "value": "", - "description": "(Required) " - }, - { - "key": "password", - "value": "", - "description": "(Required) " - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "response": [ - { - "id": "093a3371-db2d-4139-9780-99f378946e2f", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "key": "username", - "value": "", - "description": "(Required) " - }, - { - "key": "password", - "value": "", - "description": "(Required) " - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOTIyMWZmYzktNjQwZi00MzcyLTg2ZDMtY2U2NDJjYmE1NjAzIiwiYXVkIjoiZmFzdGFwaS11c2VyczphdXRoIiwiZXhwIjoxNTcxNTA0MTkzfQ.M10bjOe45I5Ncu_uXvOmVV8QxnL-nZfcH96U90JaocI\",\n \"token_type\": \"bearer\"\n}" - }, - { - "id": "0c646e52-2962-4013-b387-e4b175ad046e", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "key": "username", - "value": "", - "description": "(Required) " - }, - { - "key": "password", - "value": "", - "description": "(Required) " - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"LOGIN_BAD_CREDENTIALS\"\n}" - }, - { - "id": "e2d2e59e-c2f8-4c60-9a1f-d6767ed532fc", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "key": "username", - "value": "", - "description": "(Required) " - }, - { - "key": "password", - "value": "", - "description": "(Required) " - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Auth:Jwt.Logout", - "id": "9010c74c-bcab-46d0-b266-f872190a1d96", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "response": [ - { - "id": "e144411a-5bcb-4283-865b-c55bfabbf41b", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "7fcba893-fef7-4fdc-a1a7-9f2ab9c035df", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "text/plain" - } - ], - "cookie": [], - "body": "" - } - ] - } - ], - "id": "74894da6-caa1-4190-9a13-3e0d4ab30c26" - }, - { - "name": "Register:Register", - "id": "70f6acd1-e790-4827-9a83-01a560ac477c", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"\",\n \"last_name\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "response": [ - { - "id": "71afe707-563a-4d30-833d-189bccc755d5", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"\",\n \"last_name\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Created", - "code": 201, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"dRJBvfI3bLm8NxA@ZSjDdCxlZhMGhxCcqZEAkNPJhL.tq\",\n \"first_name\": \"et minim\",\n \"last_name\": \"elit ad\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "3ac6032c-6470-4096-a9f6-8cb36a65a389", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"\",\n \"last_name\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"REGISTER_USER_ALREADY_EXISTS\"\n}" - }, - { - "id": "c0214a91-7696-478a-a5df-1f00b45acfb6", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"\",\n \"last_name\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Reset:Forgot Password", - "id": "a5e7d32f-c3f2-4586-b8b0-66ae34298c67", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "response": [ - { - "id": "a3035cec-2fa2-4d43-85b0-53e04c029ef0", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "status": "Accepted", - "code": 202, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "a29c1577-579d-409d-b4d9-85aa9b2f5a87", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Reset:Reset Password", - "id": "74cda0d4-a8b2-43da-82f0-6a81cbf115dd", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "response": [ - { - "id": "72c2da85-466b-42c4-8707-3f5ebb5e61a2", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "c6e1f2c8-dd94-4b31-ab8b-14b3887bfb54", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"RESET_PASSWORD_BAD_TOKEN\"\n}" - }, - { - "id": "980c7f35-c323-4000-9b68-b316164765ef", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Verify:Request-Token", - "id": "2f53934e-7083-4cbe-90c3-43e4191c83f7", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "response": [ - { - "id": "35c51c31-6736-454f-a1d1-d66d82424b14", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "status": "Accepted", - "code": 202, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "c9024519-0ca7-4bf2-bbfd-c5f88d6b73ee", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - }, - { - "name": "Verify:Verify", - "id": "5cfa5b06-96d2-48a0-88cb-3b706e29532d", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "response": [ - { - "id": "30edfa99-f96f-4d26-b35b-2013f92f1232", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"email\": \"dRJBvfI3bLm8NxA@ZSjDdCxlZhMGhxCcqZEAkNPJhL.tq\",\n \"first_name\": \"et minim\",\n \"last_name\": \"elit ad\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "f31234ee-d207-4dc8-8cde-4b9e1ec764e9", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": \"VERIFY_USER_BAD_TOKEN\"\n}" - }, - { - "id": "6c847e99-4f27-4b7b-ab48-c824de2b824a", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "_postman_previewtype": "html", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"laboris\",\n \"Excepteur ex tempor\"\n ],\n \"msg\": \"reprehenderit nostrud aliquip eu labore\",\n \"type\": \"culpa eni\"\n },\n {\n \"loc\": [\n \"eiusmod dolore\",\n \"do irure\"\n ],\n \"msg\": \"consectetur voluptate minim enim of\",\n \"type\": \"l\"\n }\n ]\n}" - } - ] - } - ], - "id": "a5c1a77e-4ef5-4fd7-9b3b-ae163ffc6f81" - } - ], - "variable": [ - { - "id": "c6970185-abdb-4a40-b56b-4c0040c20fcd", - "key": "baseUrl", - "value": "/", - "type": "string" - } - ] -} \ No newline at end of file diff --git a/postman/collections/Polling App | 0.0.5 | Documentation.json b/postman/collections/Polling App | 0.0.5 | Documentation.json deleted file mode 100644 index da0b112..0000000 --- a/postman/collections/Polling App | 0.0.5 | Documentation.json +++ /dev/null @@ -1,10113 +0,0 @@ -{ - "info": { - "_postman_id": "c49861c3-7c54-4148-85a5-29f65db9a4a3", - "name": "Polling App | 0.0.5 | Documentation", - "description": "A REST API to manage users and polls", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_uid": "19614303-c49861c3-7c54-4148-85a5-29f65db9a4a3" - }, - "item": [ - { - "name": "groups", - "item": [ - { - "name": "{group_id}", - "item": [ - { - "name": "members", - "item": [ - { - "name": "Get Group Members", - "id": "6022863c-bccb-480f-86c7-e2390a180e96", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with role. The user must be a member of the group or a superuser to access this endpoint.\n### Body **member**: list of members and their roles. Check the example for more details." - }, - "response": [ - { - "id": "e70720ed-3d9d-4e84-a8bc-762aae779fcc", - "name": "Get group members", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with role. The user must be a member of the group or a superuser to access this endpoint.\n### Body **member**: list of members and their roles. Check the example for more details." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "5617dc07-cb6a-4ca0-9c0b-e3ecea6736a6", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with role. The user must be a member of the group or a superuser to access this endpoint.\n### Body **member**: list of members and their roles. Check the example for more details." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "eb859def-66ec-418d-a6b0-67dabd537bdf", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with role. The user must be a member of the group or a superuser to access this endpoint.\n### Body **member**: list of members and their roles. Check the example for more details." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Add User To Group", - "id": "1ce68dbb-95dc-4fa4-aa00-665a14a1a131", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Add member(s) to a group. This route adds a user or multiple users to a group with a specified role. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\n### Parameters **group_id**: The id of the group to update.\n### Body The function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group. Check the example for more details.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "response": [ - { - "id": "5ca2f271-5421-4b3a-b203-079756c8e741", - "name": "Add user(s) to a group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Add member(s) to a group. This route adds a user or multiple users to a group with a specified role. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\n### Parameters **group_id**: The id of the group to update.\n### Body The function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group. Check the example for more details.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "367bc5e5-bb5d-4824-a17d-cfbb0d293011", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Add member(s) to a group. This route adds a user or multiple users to a group with a specified role. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\n### Parameters **group_id**: The id of the group to update.\n### Body The function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group. Check the example for more details.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "9a47b980-dc8e-4e0a-bccb-e0825aa6a46d", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Add member(s) to a group. This route adds a user or multiple users to a group with a specified role. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\n### Parameters **group_id**: The id of the group to update.\n### Body The function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group. Check the example for more details.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - } - ], - "id": "3b729918-4f73-4833-ac87-eb16394ab3d2" - }, - { - "name": "member/{user_id}", - "item": [ - { - "name": "Get Member Details", - "id": "043600fd-8ac8-47bf-b108-bc7fcddc2e9c", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get member details Returns the details of a member of a group. The user must be a member of the group or a superuser to access this endpoint." - }, - "response": [ - { - "id": "3b8c1cf3-cafc-4680-9f6f-fdbad029df51", - "name": "Get member details", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get member details Returns the details of a member of a group. The user must be a member of the group or a superuser to access this endpoint." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "4bc25fc0-7460-4d3f-a26d-c1bce5b506f7", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get member details Returns the details of a member of a group. The user must be a member of the group or a superuser to access this endpoint." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "32b1c195-e5e0-49a9-8428-f5e2bbdab6c6", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get member details Returns the details of a member of a group. The user must be a member of the group or a superuser to access this endpoint." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Remove Member", - "id": "587eb2a8-1741-48e9-81f8-f8fb4915c0ec", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Remove a member from a group This route removes a member from a group. The user must be an admin of the group to remove a member. The owner of the group cannot be removed. The user cannot remove themselves from the group. (subject to change in the future)" - }, - "response": [ - { - "id": "1610b822-9756-4d46-9dd6-44cb078c4516", - "name": "Remove a member from a group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Remove a member from a group This route removes a member from a group. The user must be an admin of the group to remove a member. The owner of the group cannot be removed. The user cannot remove themselves from the group. (subject to change in the future)" - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "86944d20-3dee-4505-a244-c1d0ea15f060", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Remove a member from a group This route removes a member from a group. The user must be an admin of the group to remove a member. The owner of the group cannot be removed. The user cannot remove themselves from the group. (subject to change in the future)" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "160244e6-4ce4-4baa-8713-7b05dd7251f3", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Remove a member from a group This route removes a member from a group. The user must be an admin of the group to remove a member. The owner of the group cannot be removed. The user cannot remove themselves from the group. (subject to change in the future)" - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Promote User", - "id": "e428033a-01be-4a2f-bc7f-a3b982f78a74", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"role\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Promote or demote a group member This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role." - }, - "response": [ - { - "id": "4b366e1e-5076-44e7-ba30-446e2c0dca15", - "name": "Promote a member to admin", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"role\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Promote or demote a group member This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "6d3ee844-5714-4a59-9dcf-d8525f6cb1ad", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"role\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Promote or demote a group member This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "1d60d333-4290-4c6c-ad56-804934b4e45b", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"role\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Promote or demote a group member This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - } - ], - "id": "9a637a6f-eb88-4ff5-bb22-0fff1c4701de" - }, - { - "name": "Get Group", - "id": "6e7038c3-4d26-44d9-be81-cd501bd85c9c", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group by id This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information.\n### Parameters **group_id**: The id of the group to get." - }, - "response": [ - { - "id": "2595b00d-7762-44b2-9745-bd16898bbec2", - "name": "Get group by id", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group by id This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information.\n### Parameters **group_id**: The id of the group to get." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"name\": \"Example Group\",\n \"description\": \"This is an example group\",\n \"owner_name\": \"John Doe\",\n \"owner_email\": \"jdoe@example.com\"\n}" - }, - { - "id": "bc4bd680-f1d5-4274-bb09-30ce21e18961", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group by id This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information.\n### Parameters **group_id**: The id of the group to get." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "05741eb5-e9b1-4b02-80d5-0ec53323abab", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group by id This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information.\n### Parameters **group_id**: The id of the group to get." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Update Group", - "id": "03f0ab31-6abe-48af-abdb-2dd0e6466f31", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"BKdKccNVOIq IcM 4921 6016 66 308 62265 PtDDwVfwO\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Update a group Updates a group's information if the user is the owner of the group.\n### Parameters **group_id**: The id of the group to update." - }, - "response": [ - { - "id": "66a35eb7-0fd9-4fa5-8755-e46fc0e05935", - "name": "Update a group", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"BKdKccNVOIq IcM 4921 6016 66 308 62265 PtDDwVfwO\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Update a group Updates a group's information if the user is the owner of the group.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "\"esse aute\"" - }, - { - "id": "35b419c5-8cd2-4019-b3c7-fc213f447ced", - "name": "Not found", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"BKdKccNVOIq IcM 4921 6016 66 308 62265 PtDDwVfwO\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Update a group Updates a group's information if the user is the owner of the group.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "b44af18a-8f37-428e-a53a-4a7ca1ed97ca", - "name": "Validation Error", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"BKdKccNVOIq IcM 4921 6016 66 308 62265 PtDDwVfwO\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Update a group Updates a group's information if the user is the owner of the group.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Delete Group", - "id": "9377bc60-9d7a-43fd-aba3-2d2e0012a8ec", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete a group Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list.\n### Parameters **group_id**: The id of the group to delete." - }, - "response": [ - { - "id": "edfce759-baa5-43f8-8842-362ba093f3db", - "name": "Delete group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete a group Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list.\n### Parameters **group_id**: The id of the group to delete." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "58f37e84-09d0-40c0-b086-7fbb1cffc789", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete a group Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list.\n### Parameters **group_id**: The id of the group to delete." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "b477137f-f5a3-4f3b-b2be-49659affce70", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete a group Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list.\n### Parameters **group_id**: The id of the group to delete." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Owner", - "id": "6e746d3c-67fd-49bf-bf22-ab3f6dde50d5", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group owner Returns the owner of the group if the user is a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "response": [ - { - "id": "df953319-3a07-44fb-8059-cde4c2b5dfdc", - "name": "Get group owner", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group owner Returns the owner of the group if the user is a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"email\": \"Ve1SJkEdbx3R@rYxuJoSUHvcwSNXNGD.bmb\",\n \"first_name\": \"fugiat qui magna ex ullamco\",\n \"last_name\": \"aute ad in sint\"\n}" - }, - { - "id": "7d40033c-8352-4a97-9b38-8ed67b281f57", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group owner Returns the owner of the group if the user is a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "f47e518d-fb0f-4746-b623-1646015530c0", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group owner Returns the owner of the group if the user is a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Admins", - "id": "a10ef6cc-f3b4-490c-9ed4-7c019afe1595", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group admins Returns the list of group members with admin privilege. The user must be a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "response": [ - { - "id": "6587b827-6342-4630-ad92-3a3dc1aca9e8", - "name": "Get list of group administrators", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group admins Returns the list of group members with admin privilege. The user must be a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "f1ddfbc8-0eb7-4c10-938e-b3e925de21c3", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group admins Returns the list of group members with admin privilege. The user must be a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "cdfca230-9c77-4d20-8e7e-091050481a5d", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group admins Returns the list of group members with admin privilege. The user must be a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Users", - "id": "153f081d-c87c-4113-a4ba-984e1b73cc17", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with user only privilege. The user must be a member of the group or a superuser to access this endpoint.\n### Parameters **group_id**: The id of the group to update." - }, - "response": [ - { - "id": "d8e46de6-83eb-4a65-aea1-50b61cd5ebb4", - "name": "Get group members", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with user only privilege. The user must be a member of the group or a superuser to access this endpoint.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "5b04f180-66dd-4f85-b0e8-e1258873194c", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with user only privilege. The user must be a member of the group or a superuser to access this endpoint.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "b7a0763e-71ba-4365-99a0-dce366fb8ef7", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with user only privilege. The user must be a member of the group or a superuser to access this endpoint.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - } - ], - "id": "349ac77d-99b5-4ac7-b5b6-0a556f139376" - }, - { - "name": "List Groups", - "id": "30e8f71c-60f6-497f-8ec9-5e26abb86921", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - }, - "description": "## List all groups that the user is a member of. This endpoint can be used to search for groups by name or by member. This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned.\n### Parameters User can pass in a group name and/or a member's information to search for. If no parameters are passed in, all groups that the user is a member of will be returned. If user is a superuser, all groups in the database will be returned.\n**group_name**: The name of the group to search for. **member_data**: Either email or User id of the member to search for." - }, - "response": [ - { - "id": "09d19f9c-12c3-447b-9d7f-15db2f61f83a", - "name": "List all groups", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - }, - "description": "## List all groups that the user is a member of. This endpoint can be used to search for groups by name or by member. This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned.\n### Parameters User can pass in a group name and/or a member's information to search for. If no parameters are passed in, all groups that the user is a member of will be returned. If user is a superuser, all groups in the database will be returned.\n**group_name**: The name of the group to search for. **member_data**: Either email or User id of the member to search for." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"groups\": [\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n },\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "69a8f070-4b81-4f6d-bbe5-5278e343cd05", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - }, - "description": "## List all groups that the user is a member of. This endpoint can be used to search for groups by name or by member. This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned.\n### Parameters User can pass in a group name and/or a member's information to search for. If no parameters are passed in, all groups that the user is a member of will be returned. If user is a superuser, all groups in the database will be returned.\n**group_name**: The name of the group to search for. **member_data**: Either email or User id of the member to search for." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "89346e6d-bfe8-4c71-99f8-0a21c9cba57d", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - }, - "description": "## List all groups that the user is a member of. This endpoint can be used to search for groups by name or by member. This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned.\n### Parameters User can pass in a group name and/or a member's information to search for. If no parameters are passed in, all groups that the user is a member of will be returned. If user is a superuser, all groups in the database will be returned.\n**group_name**: The name of the group to search for. **member_data**: Either email or User id of the member to search for." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"e\",\n \"officia adipisicing\"\n ],\n \"msg\": \"laborum sunt\",\n \"type\": \"dolor\"\n },\n {\n \"loc\": [\n \"aliqua anim veniam\",\n \"cillum aute aliquip\"\n ],\n \"msg\": \"Excepteur aute ea mollit officia\",\n \"type\": \"sit\"\n }\n ]\n}" - } - ] - }, - { - "name": "Create Group", - "id": "85e39ef4-17cd-4379-9118-a172dfdcd51e", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - }, - "description": "## Create a new group This endpoint creates a new group with the user as the owner, admin, and member. If the group is successfully created, the group's information is returned.\n### Parameters **name**: The name of the group. Must be unique(per user). **description**: A short description of the group." - }, - "response": [ - { - "id": "7f3405af-be28-488f-aa64-168182f0735b", - "name": "Create new group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - }, - "description": "## Create a new group This endpoint creates a new group with the user as the owner, admin, and member. If the group is successfully created, the group's information is returned.\n### Parameters **name**: The name of the group. Must be unique(per user). **description**: A short description of the group." - }, - "status": "Created", - "code": 201, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"name\": \"sint commodo\",\n \"message\": \"Group created successfully\"\n}" - }, - { - "id": "e6378092-286d-4bf4-b4a8-1c7e225fb2e0", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - }, - "description": "## Create a new group This endpoint creates a new group with the user as the owner, admin, and member. If the group is successfully created, the group's information is returned.\n### Parameters **name**: The name of the group. Must be unique(per user). **description**: A short description of the group." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "f15929bc-ef1f-41de-8944-a8f1697fa6db", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - }, - "description": "## Create a new group This endpoint creates a new group with the user as the owner, admin, and member. If the group is successfully created, the group's information is returned.\n### Parameters **name**: The name of the group. Must be unique(per user). **description**: A short description of the group." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - } - ], - "id": "f80608b2-b8a4-4913-bdf5-d2852da2de72" - }, - { - "name": "users", - "item": [ - { - "name": "me", - "item": [ - { - "name": "Users:Current User", - "id": "b75417a2-9dcd-4507-9d4d-788f23594105", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "response": [ - { - "id": "1cff6713-85a8-4f5a-9b0e-14c59fdb199c", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"AbvpFyHzCWi6zOr@jNqhmzNOuSIUFPgQgXjkapzFqCYZcQL.uu\",\n \"first_name\": \"cillum adipisicing aliqua\",\n \"last_name\": \"nulla amet anim\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "6ed4b01b-c6e7-41e9-801c-15dbb6553a65", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - } - ] - }, - { - "name": "Delete User", - "id": "b1f560ea-7406-4c37-9d48-8e27c23de021", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - }, - "description": "## Delete current user account\nThis route deletes the account of the currently logged in user.\n### Request body\n- **user** - User object\n### Expected Response\n**204** - *The account has been deleted*" - }, - "response": [ - { - "id": "0bc28e01-7d6f-43d9-afb0-544bbaa1816c", - "name": "The account has been deleted", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - }, - "description": "## Delete current user account\nThis route deletes the account of the currently logged in user.\n### Request body\n- **user** - User object\n### Expected Response\n**204** - *The account has been deleted*" - }, - "status": "No Content", - "code": 204, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "7db7065e-579a-42c7-87ec-70bfd07004c6", - "name": "User not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - }, - "description": "## Delete current user account\nThis route deletes the account of the currently logged in user.\n### Request body\n- **user** - User object\n### Expected Response\n**204** - *The account has been deleted*" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "a0bc684a-8ab4-40d9-a120-147ba894b90a", - "name": "User was not deleted", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - }, - "description": "## Delete current user account\nThis route deletes the account of the currently logged in user.\n### Request body\n- **user** - User object\n### Expected Response\n**204** - *The account has been deleted*" - }, - "status": "Internal Server Error", - "code": 500, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - } - ] - }, - { - "name": "Users:Patch Current User", - "id": "d980b606-ed9a-48a7-a1e6-574134d709c1", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "response": [ - { - "id": "b63a612a-93fa-45f7-8062-a4640b83ebd8", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"AbvpFyHzCWi6zOr@jNqhmzNOuSIUFPgQgXjkapzFqCYZcQL.uu\",\n \"first_name\": \"cillum adipisicing aliqua\",\n \"last_name\": \"nulla amet anim\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "17d450b6-f12e-414f-a35c-e7b3169eaac3", - "name": "Bad Request", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"UPDATE_USER_EMAIL_ALREADY_EXISTS\"\n}" - }, - { - "id": "f0127c81-fdc1-46a2-8d33-bdfa22e87997", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "cb6f509a-2859-41f4-a941-bf4e2578dc4a", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - } - ], - "id": "a5416ec7-44e0-4cb2-b4ff-f91cead64a09" - }, - { - "name": "{id}", - "item": [ - { - "name": "Users:User", - "id": "752557bd-fe5c-44a3-bb56-69793ac5da2f", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "4bf4997d-a949-4de9-beec-ac2cf0642486", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"AbvpFyHzCWi6zOr@jNqhmzNOuSIUFPgQgXjkapzFqCYZcQL.uu\",\n \"first_name\": \"cillum adipisicing aliqua\",\n \"last_name\": \"nulla amet anim\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "b29e209d-8312-41c1-ab60-5663c044a8be", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "102f983c-4a28-4eeb-97d9-585d79d4af5d", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "47fb7ee4-97c8-4477-8e3f-d08f9f5e4364", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "4d745e10-d80c-4d9d-850a-6c7151e0c2d4", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Users:Delete User", - "id": "21075b71-ed9c-4092-a3ad-b67a751c3211", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "e8fa7029-c2ab-4ed1-b1b3-3defac3829e6", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "No Content", - "code": 204, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "c9c869f1-aedc-4443-9c21-80445cef6cb3", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "9e526305-314d-480c-86dc-0c9e4e863ff9", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "3b2c1d83-c214-46c9-8285-c866e90e82c9", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "3e377ee2-cfdb-4feb-bb4c-676508d908b4", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Users:Patch User", - "id": "3964e995-ad48-4ab0-93ed-2024d7495313", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "1ea2b82e-3695-4d9f-82fb-7968c698d037", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"AbvpFyHzCWi6zOr@jNqhmzNOuSIUFPgQgXjkapzFqCYZcQL.uu\",\n \"first_name\": \"cillum adipisicing aliqua\",\n \"last_name\": \"nulla amet anim\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "5cc4b3bd-a233-4b64-8371-0e397fe3f4b3", - "name": "Bad Request", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"UPDATE_USER_EMAIL_ALREADY_EXISTS\"\n}" - }, - { - "id": "2347f06d-4713-44a2-adfd-ad14e8dfb241", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "ab57f94f-57fa-4d70-b8c1-44e3d02cdc5d", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "f1f78b8f-a295-419c-af32-36a9b989c31c", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "b411c13d-6ebd-4a6e-a7e5-e62465bc97ae", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - } - ], - "id": "a8b1dfff-785d-436f-b36a-a7352ca9e910" - }, - { - "name": "List My Groups", - "id": "e5301974-eaeb-4afa-a381-6d41a8290b7e", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ] - }, - "description": "## Get current user groups\nThis route returns all groups that currently logged in user is a member of, with the user's role in that group." - }, - "response": [ - { - "id": "e23af93c-3df8-4fec-aaba-a573474c835f", - "name": "List of groups.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ] - }, - "description": "## Get current user groups\nThis route returns all groups that currently logged in user is a member of, with the user's role in that group." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"groups\": [\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n },\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "45b105d7-3842-4c96-a440-fa1465a36df9", - "name": "User not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ] - }, - "description": "## Get current user groups\nThis route returns all groups that currently logged in user is a member of, with the user's role in that group." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - } - ] - }, - { - "name": "List User Groups", - "id": "b8d11f92-e9fa-4f95-a776-df70d00593ea", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:user_id/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":user_id", - "groups" - ], - "variable": [ - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete current user account\nThis route, finds user by provided id, or raises a HTTP exception (User not found). If user is found, lists all groups that a user is a member of, with the user's role in that group.\n### Request Query Parameters\n**user_id**: id of the user whose groups are to be listed" - }, - "response": [ - { - "id": "37eec743-3398-4ff0-90c4-af2117ecece4", - "name": "List of groups.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:user_id/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":user_id", - "groups" - ], - "variable": [ - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete current user account\nThis route, finds user by provided id, or raises a HTTP exception (User not found). If user is found, lists all groups that a user is a member of, with the user's role in that group.\n### Request Query Parameters\n**user_id**: id of the user whose groups are to be listed" - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"groups\": [\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n },\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "3c8a52d8-c635-43be-ab9f-d1354c67f699", - "name": "User not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:user_id/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":user_id", - "groups" - ], - "variable": [ - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete current user account\nThis route, finds user by provided id, or raises a HTTP exception (User not found). If user is found, lists all groups that a user is a member of, with the user's role in that group.\n### Request Query Parameters\n**user_id**: id of the user whose groups are to be listed" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "c21d8e7b-7598-4416-abea-8bccf7296356", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:user_id/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":user_id", - "groups" - ], - "variable": [ - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete current user account\nThis route, finds user by provided id, or raises a HTTP exception (User not found). If user is found, lists all groups that a user is a member of, with the user's role in that group.\n### Request Query Parameters\n**user_id**: id of the user whose groups are to be listed" - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - } - ], - "id": "8ccfd95b-63bc-4d07-8525-22c772a9cb3d" - }, - { - "name": "auth", - "item": [ - { - "name": "jwt", - "item": [ - { - "name": "Auth:Jwt.Login", - "id": "dd353421-ffca-4092-86a3-986518831c4b", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "response": [ - { - "id": "ffd852fa-cbca-43dd-af96-ba31852b139d", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOTIyMWZmYzktNjQwZi00MzcyLTg2ZDMtY2U2NDJjYmE1NjAzIiwiYXVkIjoiZmFzdGFwaS11c2VyczphdXRoIiwiZXhwIjoxNTcxNTA0MTkzfQ.M10bjOe45I5Ncu_uXvOmVV8QxnL-nZfcH96U90JaocI\",\n \"token_type\": \"bearer\"\n}" - }, - { - "id": "a7b6369f-269c-4f69-806b-2489e98df316", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"LOGIN_BAD_CREDENTIALS\"\n}" - }, - { - "id": "fab2b233-b93a-47b1-9d64-6fd800fab1d5", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Auth:Jwt.Logout", - "id": "b3b70b87-b349-41ff-90fe-a81309f709af", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "response": [ - { - "id": "e383c637-2e6d-4186-b1b1-4ddb22531eb0", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "558e0b27-5012-4436-be54-ad9e9acd09bb", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - } - ] - } - ], - "id": "622e3b94-b2a2-4af8-9682-86fe68bc7bc4" - }, - { - "name": "Register:Register", - "id": "59eaaf32-662f-4f05-a6ce-b149cb418422", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "response": [ - { - "id": "61dd48b4-2fb3-4413-aea0-238cd6d02c23", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Created", - "code": 201, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"AbvpFyHzCWi6zOr@jNqhmzNOuSIUFPgQgXjkapzFqCYZcQL.uu\",\n \"first_name\": \"cillum adipisicing aliqua\",\n \"last_name\": \"nulla amet anim\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "4c0a87bd-3e6b-48f6-9eb1-a295724d58f1", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"REGISTER_USER_ALREADY_EXISTS\"\n}" - }, - { - "id": "6001a8b4-9ba5-4880-96bb-55e4661e1b95", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Reset:Forgot Password", - "id": "98d606ec-faf4-431f-8095-b7c9d0598948", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "response": [ - { - "id": "9c13c652-9e3a-4c75-93a5-74d0f47d2cb7", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "status": "Accepted", - "code": 202, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "83a642fc-3142-469d-843f-e48d79c14cc5", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Reset:Reset Password", - "id": "5f619938-e72b-4912-8c1e-c3992fee438d", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "response": [ - { - "id": "cff850e7-a10c-4a38-89d9-0e2a4f4b0b37", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "4d491572-eb2e-4cbf-ad2b-5d3c7d9d98a6", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"RESET_PASSWORD_BAD_TOKEN\"\n}" - }, - { - "id": "44d4ff79-e979-49e5-9b41-6a60af31e29a", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Verify:Request-Token", - "id": "52647467-f93c-48f2-a23f-7f2738b7c4de", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "response": [ - { - "id": "3daa26dc-0cff-46fb-97e6-d452db4b8ad7", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "status": "Accepted", - "code": 202, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "8dff4946-2687-48c8-be5c-d6b4eebd085a", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - }, - { - "name": "Verify:Verify", - "id": "90cf4b05-5c5d-41d1-a198-0f4a42092335", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "response": [ - { - "id": "0b108505-99bc-4484-9f6b-de66d9d9bcf1", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"AbvpFyHzCWi6zOr@jNqhmzNOuSIUFPgQgXjkapzFqCYZcQL.uu\",\n \"first_name\": \"cillum adipisicing aliqua\",\n \"last_name\": \"nulla amet anim\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "395dcb29-9258-4319-99c8-e909dcbe051c", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"VERIFY_USER_BAD_TOKEN\"\n}" - }, - { - "id": "bad222d1-0c9f-4d8b-9bac-fe368ee80e4f", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"elit commodo a\",\n \"veniam elit\"\n ],\n \"msg\": \"qui reprehenderit\",\n \"type\": \"quis ad aliqua\"\n },\n {\n \"loc\": [\n \"laboris dolor sit dolor\",\n \"ullamco\"\n ],\n \"msg\": \"culpa esse magna\",\n \"type\": \"Duis\"\n }\n ]\n}" - } - ] - } - ], - "id": "54dc81d6-0849-467d-83be-1861195b2051" - } - ], - "variable": [ - { - "id": "547fafd1-eee9-4b4f-a75c-c049c1a899cc", - "key": "baseUrl", - "value": "/" - } - ] -} \ No newline at end of file diff --git a/postman/collections/Polling App | 0.0.5 | Mock Driver.json b/postman/collections/Polling App | 0.0.5 | Mock Driver.json deleted file mode 100644 index 72ae614..0000000 --- a/postman/collections/Polling App | 0.0.5 | Mock Driver.json +++ /dev/null @@ -1,10113 +0,0 @@ -{ - "info": { - "_postman_id": "54818a57-d701-44bd-990b-eb2c3d77c4f6", - "name": "Polling App | 0.0.5 | Mock Driver", - "description": "A REST API to manage users and polls", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_uid": "19614303-54818a57-d701-44bd-990b-eb2c3d77c4f6" - }, - "item": [ - { - "name": "groups", - "item": [ - { - "name": "{group_id}", - "item": [ - { - "name": "members", - "item": [ - { - "name": "Get Group Members", - "id": "f13e7d24-0408-4727-8cda-e21cd2ba1980", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with role. The user must be a member of the group or a superuser to access this endpoint.\n### Body **member**: list of members and their roles. Check the example for more details." - }, - "response": [ - { - "id": "225cc9b5-693b-41a5-9e3e-033bed121a85", - "name": "Get group members", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with role. The user must be a member of the group or a superuser to access this endpoint.\n### Body **member**: list of members and their roles. Check the example for more details." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "55a6937f-a034-4a42-a103-bc4c849fca6b", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with role. The user must be a member of the group or a superuser to access this endpoint.\n### Body **member**: list of members and their roles. Check the example for more details." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "b85e16b7-febd-43aa-8df9-83aebb09267d", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with role. The user must be a member of the group or a superuser to access this endpoint.\n### Body **member**: list of members and their roles. Check the example for more details." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Add User To Group", - "id": "78b5a56a-a181-4102-8b40-1c424dd9c209", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Add member(s) to a group. This route adds a user or multiple users to a group with a specified role. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\n### Parameters **group_id**: The id of the group to update.\n### Body The function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group. Check the example for more details.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "response": [ - { - "id": "25cc4fd7-dddf-4722-9534-69ba2a24e077", - "name": "Add user(s) to a group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Add member(s) to a group. This route adds a user or multiple users to a group with a specified role. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\n### Parameters **group_id**: The id of the group to update.\n### Body The function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group. Check the example for more details.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "4cfce67b-e4e2-4667-952e-e49e740406c1", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Add member(s) to a group. This route adds a user or multiple users to a group with a specified role. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\n### Parameters **group_id**: The id of the group to update.\n### Body The function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group. Check the example for more details.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "9bb282f7-4d9a-41e5-a1e6-d63f27b595e9", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"members\": [\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n },\n {\n \"email\": \"\",\n \"id\": {},\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"role\": \"user\"\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/members", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "members" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Add member(s) to a group. This route adds a user or multiple users to a group with a specified role. The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. This function also does the same validation checks; However, no users will be added if any error occurs.\n### Parameters **group_id**: The id of the group to update.\n### Body The function takes a list of JSON objects(Models) with email of the new user and the role(privilege level) in the group. Check the example for more details.\nPossible outcomes: - The function will return a list of emails of users that were not found in the database. - The function will return an error if a user is already a member of the group - The function will successfully add the users to the group" - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "242a3b2e-b87b-4c63-97f5-7771a769886b" - }, - { - "name": "member/{user_id}", - "item": [ - { - "name": "Get Member Details", - "id": "386c251a-3d19-4125-9e90-0f92aef29441", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get member details Returns the details of a member of a group. The user must be a member of the group or a superuser to access this endpoint." - }, - "response": [ - { - "id": "e96d8e9f-c022-4726-bfae-97cde21c8e53", - "name": "Get member details", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get member details Returns the details of a member of a group. The user must be a member of the group or a superuser to access this endpoint." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "bcb20416-3022-4da8-b553-a9308ee150ff", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get member details Returns the details of a member of a group. The user must be a member of the group or a superuser to access this endpoint." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "6dabbbe2-671a-4f33-a25f-8a933165d1e5", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get member details Returns the details of a member of a group. The user must be a member of the group or a superuser to access this endpoint." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Remove Member", - "id": "9db0bdf3-c619-4e72-809c-fdebe80d60a3", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Remove a member from a group This route removes a member from a group. The user must be an admin of the group to remove a member. The owner of the group cannot be removed. The user cannot remove themselves from the group. (subject to change in the future)" - }, - "response": [ - { - "id": "ab747ef8-ab82-479d-8b27-5e867343c1ea", - "name": "Remove a member from a group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Remove a member from a group This route removes a member from a group. The user must be an admin of the group to remove a member. The owner of the group cannot be removed. The user cannot remove themselves from the group. (subject to change in the future)" - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "30565222-1ec9-431c-87a7-5a5cabffb51c", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Remove a member from a group This route removes a member from a group. The user must be an admin of the group to remove a member. The owner of the group cannot be removed. The user cannot remove themselves from the group. (subject to change in the future)" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "291c48ce-6046-4870-9361-53cbebcfd14a", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Remove a member from a group This route removes a member from a group. The user must be an admin of the group to remove a member. The owner of the group cannot be removed. The user cannot remove themselves from the group. (subject to change in the future)" - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Promote User", - "id": "8ebf94a3-843d-4c46-be36-543ca779cfaa", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"role\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Promote or demote a group member This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role." - }, - "response": [ - { - "id": "f61919f0-3268-456f-aa04-53cc31e8aaf0", - "name": "Promote a member to admin", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"role\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Promote or demote a group member This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "a855f6ac-ee1e-4bba-95fc-784278ad32f5", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"role\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Promote or demote a group member This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "4660903f-89d2-42b1-890b-9c17624f31ba", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"role\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id/member/:user_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "member", - ":user_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - }, - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Promote or demote a group member This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "0cb7e0f3-dcc6-4774-a7bc-a5de600ab4d5" - }, - { - "name": "Get Group", - "id": "e2e1d0ac-410a-4cb4-b4b8-327b8141e56e", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group by id This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information.\n### Parameters **group_id**: The id of the group to get." - }, - "response": [ - { - "id": "12f91340-a116-4103-95ee-fbf623dccbe7", - "name": "Get group by id", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group by id This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information.\n### Parameters **group_id**: The id of the group to get." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"name\": \"Example Group\",\n \"description\": \"This is an example group\",\n \"owner_name\": \"John Doe\",\n \"owner_email\": \"jdoe@example.com\"\n}" - }, - { - "id": "b27ef2eb-96e1-4c79-8ee7-26f952b72d35", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group by id This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information.\n### Parameters **group_id**: The id of the group to get." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "039a672a-0cd5-4df1-b98b-5d7b160365ec", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group by id This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information.\n### Parameters **group_id**: The id of the group to get." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Update Group", - "id": "a396b97a-8825-4f27-bef3-d920c1f468ed", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"OnXErwhIuk MBtfE EKKgxAPiqz NAI 6649032\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Update a group Updates a group's information if the user is the owner of the group.\n### Parameters **group_id**: The id of the group to update." - }, - "response": [ - { - "id": "cbbbfaec-593f-47a6-b824-67bf64945503", - "name": "Update a group", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"OnXErwhIuk MBtfE EKKgxAPiqz NAI 6649032\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Update a group Updates a group's information if the user is the owner of the group.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "\"enim proident est irure ipsum\"" - }, - { - "id": "d4b63f42-f61e-4935-a2a0-5a58bd10cd62", - "name": "Not found", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"OnXErwhIuk MBtfE EKKgxAPiqz NAI 6649032\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Update a group Updates a group's information if the user is the owner of the group.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "206e9c2c-77e3-4a1f-b407-fda9ac7311ea", - "name": "Validation Error", - "originalRequest": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"OnXErwhIuk MBtfE EKKgxAPiqz NAI 6649032\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Update a group Updates a group's information if the user is the owner of the group.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Delete Group", - "id": "ac7bfc8f-4499-4f60-85db-76d1c914ba75", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete a group Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list.\n### Parameters **group_id**: The id of the group to delete." - }, - "response": [ - { - "id": "3954b243-4141-410b-85d0-6787a9c8a9c5", - "name": "Delete group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete a group Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list.\n### Parameters **group_id**: The id of the group to delete." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "198bca03-acf6-4611-bb2f-43f03d01f5ae", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete a group Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list.\n### Parameters **group_id**: The id of the group to delete." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "a73b1c9a-dd12-4dc1-abee-465047788e54", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete a group Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list.\n### Parameters **group_id**: The id of the group to delete." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Owner", - "id": "7288d17d-cc0d-4882-87bd-cded2f954b60", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group owner Returns the owner of the group if the user is a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "response": [ - { - "id": "330b44fc-6eac-40ab-9118-293ed9dd0b3e", - "name": "Get group owner", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group owner Returns the owner of the group if the user is a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"email\": \"ssI4b5@jOyujKAnYzAXhwRzFxXnTEJGpgsYRj.ger\",\n \"first_name\": \"ea culpa eiusmod aliqua\",\n \"last_name\": \"proident minim exercitation commodo\"\n}" - }, - { - "id": "5559aa86-046a-485c-9ad6-b353b3180cd5", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group owner Returns the owner of the group if the user is a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "1e7ab4bd-4dc8-4eb6-b382-b481ae54902d", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/owner", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "owner" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get group owner Returns the owner of the group if the user is a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Admins", - "id": "5a8a8559-eb8a-4116-a39d-c8959ace631d", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group admins Returns the list of group members with admin privilege. The user must be a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "response": [ - { - "id": "00270840-a89d-4e8a-a459-477764b15145", - "name": "Get list of group administrators", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group admins Returns the list of group members with admin privilege. The user must be a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "b6b7d528-d2d6-4070-987c-f26341a68795", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group admins Returns the list of group members with admin privilege. The user must be a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "4ebb8085-608c-4408-a05d-004112854522", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/admins/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "admins", - "" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group admins Returns the list of group members with admin privilege. The user must be a member of the group or a superuser.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Get Group Users", - "id": "6ab600e5-98f8-48e0-b083-a81fa8978948", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with user only privilege. The user must be a member of the group or a superuser to access this endpoint.\n### Parameters **group_id**: The id of the group to update." - }, - "response": [ - { - "id": "1a80e9b9-db7f-42d2-9a67-4ecffb993d36", - "name": "Get group members", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with user only privilege. The user must be a member of the group or a superuser to access this endpoint.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"members\": [\n {\n \"email\": \"jdoe@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"role\": \"admin\"\n },\n {\n \"email\": \"jsmith@example.com\",\n \"first_name\": \"Jack\",\n \"last_name\": \"Smith\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "8c15e915-a108-4e96-a42f-06e887819802", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with user only privilege. The user must be a member of the group or a superuser to access this endpoint.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "98fb09ff-4ef2-407e-ba7d-b9002cf3c437", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/:group_id/users", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - ":group_id", - "users" - ], - "variable": [ - { - "key": "group_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Get list of group users Returns the list of group members with user only privilege. The user must be a member of the group or a superuser to access this endpoint.\n### Parameters **group_id**: The id of the group to update." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "802d6697-c807-4a1d-a1de-bf20a531aaf3" - }, - { - "name": "List Groups", - "id": "d3b99c1d-6581-4cc9-b662-a0df51ce17a9", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - }, - "description": "## List all groups that the user is a member of. This endpoint can be used to search for groups by name or by member. This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned.\n### Parameters User can pass in a group name and/or a member's information to search for. If no parameters are passed in, all groups that the user is a member of will be returned. If user is a superuser, all groups in the database will be returned.\n**group_name**: The name of the group to search for. **member_data**: Either email or User id of the member to search for." - }, - "response": [ - { - "id": "0c4c8b28-ed41-407f-b2e2-eb60a699f5da", - "name": "List all groups", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - }, - "description": "## List all groups that the user is a member of. This endpoint can be used to search for groups by name or by member. This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned.\n### Parameters User can pass in a group name and/or a member's information to search for. If no parameters are passed in, all groups that the user is a member of will be returned. If user is a superuser, all groups in the database will be returned.\n**group_name**: The name of the group to search for. **member_data**: Either email or User id of the member to search for." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"groups\": [\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n },\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "acefef45-2e88-4525-ba0b-8516790e2da4", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - }, - "description": "## List all groups that the user is a member of. This endpoint can be used to search for groups by name or by member. This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned.\n### Parameters User can pass in a group name and/or a member's information to search for. If no parameters are passed in, all groups that the user is a member of will be returned. If user is a superuser, all groups in the database will be returned.\n**group_name**: The name of the group to search for. **member_data**: Either email or User id of the member to search for." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "6f5cba7c-e251-49a8-a294-27b6b34fa817", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/groups/?group_name=&member_data=", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ], - "query": [ - { - "key": "group_name", - "value": "" - }, - { - "key": "member_data", - "value": "" - } - ] - }, - "description": "## List all groups that the user is a member of. This endpoint can be used to search for groups by name or by member. This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned.\n### Parameters User can pass in a group name and/or a member's information to search for. If no parameters are passed in, all groups that the user is a member of will be returned. If user is a superuser, all groups in the database will be returned.\n**group_name**: The name of the group to search for. **member_data**: Either email or User id of the member to search for." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ut\",\n \"Ut ex pariatur reprehenderit irure\"\n ],\n \"msg\": \"in dolor aliqua\",\n \"type\": \"enim do\"\n },\n {\n \"loc\": [\n \"cupidatat incididunt dolor nulla\",\n \"aliquip sed\"\n ],\n \"msg\": \"deserunt proident elit\",\n \"type\": \"deserunt elit consectetur\"\n }\n ]\n}" - } - ] - }, - { - "name": "Create Group", - "id": "9306fc97-cccb-422e-a54c-d1dc12143845", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - }, - "description": "## Create a new group This endpoint creates a new group with the user as the owner, admin, and member. If the group is successfully created, the group's information is returned.\n### Parameters **name**: The name of the group. Must be unique(per user). **description**: A short description of the group." - }, - "response": [ - { - "id": "6b27e280-2120-4f9a-8948-1aea7ec8d083", - "name": "Create new group", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - }, - "description": "## Create a new group This endpoint creates a new group with the user as the owner, admin, and member. If the group is successfully created, the group's information is returned.\n### Parameters **name**: The name of the group. Must be unique(per user). **description**: A short description of the group." - }, - "status": "Created", - "code": 201, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"name\": \"Lorem nisi ullamco ea mollit\",\n \"message\": \"Group created successfully\"\n}" - }, - { - "id": "c04d1710-351d-4ba1-acbd-a5eb2bd61f7b", - "name": "Not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - }, - "description": "## Create a new group This endpoint creates a new group with the user as the owner, admin, and member. If the group is successfully created, the group's information is returned.\n### Parameters **name**: The name of the group. Must be unique(per user). **description**: A short description of the group." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "33cf97a0-8d50-4bcf-b50f-c9a1a0ffbf45", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"name\": \"Group 01\",\n \"description\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/groups/", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "groups", - "" - ] - }, - "description": "## Create a new group This endpoint creates a new group with the user as the owner, admin, and member. If the group is successfully created, the group's information is returned.\n### Parameters **name**: The name of the group. Must be unique(per user). **description**: A short description of the group." - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "140cfcc0-fcc1-48d8-9824-47b519ea630f" - }, - { - "name": "users", - "item": [ - { - "name": "me", - "item": [ - { - "name": "Users:Current User", - "id": "374beb41-c646-4497-be28-fb5ee33b57d5", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "response": [ - { - "id": "e0c9742b-8fab-4a7f-a3db-962696752f59", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"qogx2qLhhK@vEVabMIJJeWoqgLt.ay\",\n \"first_name\": \"dolore exercitation incididunt enim Excepteur\",\n \"last_name\": \"sit incididunt adipisicing ex\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "9f88745d-5973-4f15-95e4-472497b59acb", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - } - ] - }, - { - "name": "Delete User", - "id": "0aa87877-8fbb-4402-ace5-1097ada6ae86", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - }, - "description": "## Delete current user account\nThis route deletes the account of the currently logged in user.\n### Request body\n- **user** - User object\n### Expected Response\n**204** - *The account has been deleted*" - }, - "response": [ - { - "id": "cbe5b79b-43de-447a-b1e8-281d2c43043b", - "name": "The account has been deleted", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - }, - "description": "## Delete current user account\nThis route deletes the account of the currently logged in user.\n### Request body\n- **user** - User object\n### Expected Response\n**204** - *The account has been deleted*" - }, - "status": "No Content", - "code": 204, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "38a020f1-f8cc-4500-9af0-284eb96272f3", - "name": "User not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - }, - "description": "## Delete current user account\nThis route deletes the account of the currently logged in user.\n### Request body\n- **user** - User object\n### Expected Response\n**204** - *The account has been deleted*" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "86eeb39a-d286-423b-a556-8ae783d25428", - "name": "User was not deleted", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - }, - "description": "## Delete current user account\nThis route deletes the account of the currently logged in user.\n### Request body\n- **user** - User object\n### Expected Response\n**204** - *The account has been deleted*" - }, - "status": "Internal Server Error", - "code": 500, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - } - ] - }, - { - "name": "Users:Patch Current User", - "id": "1e25a27e-6b0c-4eb8-9761-96bb445508d5", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "response": [ - { - "id": "4ff381aa-e90f-4072-bec1-7cdb3f3268bc", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"qogx2qLhhK@vEVabMIJJeWoqgLt.ay\",\n \"first_name\": \"dolore exercitation incididunt enim Excepteur\",\n \"last_name\": \"sit incididunt adipisicing ex\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "1c6cf20b-5a3e-4a43-9155-92a42e5fb804", - "name": "Bad Request", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"UPDATE_USER_EMAIL_ALREADY_EXISTS\"\n}" - }, - { - "id": "073d7119-12c6-4153-9b3c-9a0074ac1463", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "cdd5e1f5-a830-4aa9-954e-29f682c8bad0", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/me", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "me" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "2392a275-7d5b-4622-abc2-ddf2906a6bc4" - }, - { - "name": "{id}", - "item": [ - { - "name": "Users:User", - "id": "abbcf5be-dd7c-4941-94f7-ff42edf227e9", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "5b21b628-6680-4228-967a-933c48d4e113", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"qogx2qLhhK@vEVabMIJJeWoqgLt.ay\",\n \"first_name\": \"dolore exercitation incididunt enim Excepteur\",\n \"last_name\": \"sit incididunt adipisicing ex\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "d1ff7760-6505-45bf-aa96-ce157920e312", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "246ad6f5-b7d4-4240-bca7-35d4f084de46", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "e58abb39-9a31-4b19-ab7b-288e98929194", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "23cc9c95-5e51-4dfd-ac55-140e127ca9ca", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Users:Delete User", - "id": "191c8663-3496-46a7-bffa-f07a9676b8be", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "ec4b8c41-79b6-4eef-8347-b349528c766f", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "No Content", - "code": 204, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "0b463b59-5527-4d9b-a3a9-fc20882debc1", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "3391f926-512b-4812-9efc-9aa49a619ed5", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "4293ed5c-d6e9-4c73-a263-e8b4f2604402", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "69aabe89-a628-4ded-a8db-df419ed66543", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Users:Patch User", - "id": "9ef140a1-aa93-451b-9389-4dbddc25e578", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "response": [ - { - "id": "38338fd4-9b38-4eb3-a01c-0942cb5597d9", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"qogx2qLhhK@vEVabMIJJeWoqgLt.ay\",\n \"first_name\": \"dolore exercitation incididunt enim Excepteur\",\n \"last_name\": \"sit incididunt adipisicing ex\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "05660f6f-9735-4f91-b82c-450f7fe5c51f", - "name": "Bad Request", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"UPDATE_USER_EMAIL_ALREADY_EXISTS\"\n}" - }, - { - "id": "eada43d2-f906-4d83-aea0-67bd4eddc2c5", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "961514b8-b982-4e91-afa1-fb75ca6e10f1", - "name": "Not a superuser.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Forbidden", - "code": 403, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "01379761-a33d-4745-9981-1420b7426768", - "name": "The user does not exist.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "c02299c0-4fba-4120-b40a-f50526989e28", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "PATCH", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"password\": \"\",\n \"email\": \"\",\n \"is_active\": \"\",\n \"is_superuser\": \"\",\n \"is_verified\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/users/:id", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":id" - ], - "variable": [ - { - "key": "id", - "value": "", - "description": "(Required) " - } - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "43b8ddb3-6ae3-4c4b-be08-54ba0dd435fd" - }, - { - "name": "List My Groups", - "id": "1ec1f4fb-5422-4ee4-83a7-834aecaff849", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ] - }, - "description": "## Get current user groups\nThis route returns all groups that currently logged in user is a member of, with the user's role in that group." - }, - "response": [ - { - "id": "384a97c0-8eba-4747-a499-ef5a6fbef83a", - "name": "List of groups.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ] - }, - "description": "## Get current user groups\nThis route returns all groups that currently logged in user is a member of, with the user's role in that group." - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"groups\": [\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n },\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "292bbcd7-362e-4577-a9e0-0797935e5fab", - "name": "User not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - "groups" - ] - }, - "description": "## Get current user groups\nThis route returns all groups that currently logged in user is a member of, with the user's role in that group." - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - } - ] - }, - { - "name": "List User Groups", - "id": "028399d5-39c2-4697-acf9-a642c1b46b2f", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:user_id/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":user_id", - "groups" - ], - "variable": [ - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete current user account\nThis route, finds user by provided id, or raises a HTTP exception (User not found). If user is found, lists all groups that a user is a member of, with the user's role in that group.\n### Request Query Parameters\n**user_id**: id of the user whose groups are to be listed" - }, - "response": [ - { - "id": "130f0c4f-f2bc-4ddd-8c63-adb379ddc9d1", - "name": "List of groups.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:user_id/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":user_id", - "groups" - ], - "variable": [ - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete current user account\nThis route, finds user by provided id, or raises a HTTP exception (User not found). If user is found, lists all groups that a user is a member of, with the user's role in that group.\n### Request Query Parameters\n**user_id**: id of the user whose groups are to be listed" - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"groups\": [\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n },\n {\n \"name\": \"Group 01\",\n \"role\": \"user\"\n }\n ]\n}" - }, - { - "id": "7f5817de-be0a-4cdf-bfb9-830cf87513e2", - "name": "User not found", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:user_id/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":user_id", - "groups" - ], - "variable": [ - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete current user account\nThis route, finds user by provided id, or raises a HTTP exception (User not found). If user is found, lists all groups that a user is a member of, with the user's role in that group.\n### Request Query Parameters\n**user_id**: id of the user whose groups are to be listed" - }, - "status": "Not Found", - "code": 404, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - }, - { - "id": "70177900-5775-4e31-b0ad-d9e5dd70d66c", - "name": "Validation Error", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/users/:user_id/groups", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "users", - ":user_id", - "groups" - ], - "variable": [ - { - "key": "user_id", - "value": "", - "description": "(Required) " - } - ] - }, - "description": "## Delete current user account\nThis route, finds user by provided id, or raises a HTTP exception (User not found). If user is found, lists all groups that a user is a member of, with the user's role in that group.\n### Request Query Parameters\n**user_id**: id of the user whose groups are to be listed" - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "082674c7-f5c4-4a45-ac55-1a5d13640f3a" - }, - { - "name": "auth", - "item": [ - { - "name": "jwt", - "item": [ - { - "name": "Auth:Jwt.Login", - "id": "fec4366a-18f5-45d8-b831-2978d1be1206", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "response": [ - { - "id": "44ecce13-c526-4046-8110-4bbf5c4b0541", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOTIyMWZmYzktNjQwZi00MzcyLTg2ZDMtY2U2NDJjYmE1NjAzIiwiYXVkIjoiZmFzdGFwaS11c2VyczphdXRoIiwiZXhwIjoxNTcxNTA0MTkzfQ.M10bjOe45I5Ncu_uXvOmVV8QxnL-nZfcH96U90JaocI\",\n \"token_type\": \"bearer\"\n}" - }, - { - "id": "846db39c-77dc-4e89-b902-9f1c63140d82", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"LOGIN_BAD_CREDENTIALS\"\n}" - }, - { - "id": "20e913f3-add2-42c2-b2b3-b0f8cd718bd8", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/x-www-form-urlencoded" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "description": "(Required) ", - "key": "username", - "value": "" - }, - { - "description": "(Required) ", - "key": "password", - "value": "" - }, - { - "key": "grant_type", - "value": "" - }, - { - "key": "scope", - "value": "" - }, - { - "key": "client_id", - "value": "" - }, - { - "key": "client_secret", - "value": "" - } - ] - }, - "url": { - "raw": "{{baseUrl}}/auth/jwt/login", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "login" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Auth:Jwt.Logout", - "id": "94e39a0c-f156-4ae3-a36d-5c0077b4ec43", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "grant_type", - "value": "password_credentials", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "response": [ - { - "id": "73584ce3-6a86-4644-bc89-492503b48608", - "name": "Successful Response", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "4c31a84f-f736-4c83-8662-85ef18fc8079", - "name": "Missing token or inactive user.", - "originalRequest": { - "auth": { - "type": "oauth2", - "oauth2": [ - { - "key": "accessToken", - "type": "any" - }, - { - "key": "addTokenTo", - "type": "any" - }, - { - "key": "callBackUrl", - "type": "any" - }, - { - "key": "authUrl", - "type": "any" - }, - { - "key": "accessTokenUrl", - "value": "auth/jwt/login", - "type": "string" - }, - { - "key": "clientId", - "type": "any" - }, - { - "key": "clientSecret", - "type": "any" - }, - { - "key": "clientAuth", - "type": "any" - }, - { - "key": "grantType", - "type": "any" - }, - { - "key": "scope", - "type": "any" - }, - { - "key": "username", - "type": "any" - }, - { - "key": "password", - "type": "any" - }, - { - "key": "tokenType", - "type": "any" - }, - { - "key": "redirectUri", - "type": "any" - }, - { - "key": "refreshToken", - "type": "any" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "value": "application/json" - } - ], - "url": { - "raw": "{{baseUrl}}/auth/jwt/logout", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "jwt", - "logout" - ] - } - }, - "status": "Unauthorized", - "code": 401, - "_postman_previewlanguage": "text", - "header": [ - { - "key": "Content-Type", - "value": "text/plain", - "enabled": true - } - ], - "cookie": [], - "body": "" - } - ] - } - ], - "id": "b403171b-ecc4-47a7-bebe-44132890fd2e" - }, - { - "name": "Register:Register", - "id": "9c1b1ca6-6779-4cc9-814b-0fa9aa901ebd", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "response": [ - { - "id": "abe48366-d68b-470f-be65-91f13300b954", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Created", - "code": 201, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"qogx2qLhhK@vEVabMIJJeWoqgLt.ay\",\n \"first_name\": \"dolore exercitation incididunt enim Excepteur\",\n \"last_name\": \"sit incididunt adipisicing ex\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "4cfaea29-a009-4a54-9e71-a59582a85378", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"REGISTER_USER_ALREADY_EXISTS\"\n}" - }, - { - "id": "30fb98d7-f403-4959-9126-c24fb0e040a0", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\",\n \"password\": \"\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false,\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/register", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "register" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Reset:Forgot Password", - "id": "3e9dfbf3-8ad6-41db-a23d-4d0ae499e093", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "response": [ - { - "id": "c69056a8-f121-4696-a2b0-119ba4b3b78f", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "status": "Accepted", - "code": 202, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "a209619c-3de3-487e-afd9-ecc291165e87", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/forgot-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "forgot-password" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Reset:Reset Password", - "id": "856ed425-1502-4b44-b9cf-b3cd257e6bbd", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "response": [ - { - "id": "fa2f420b-4936-44a4-adcb-4785dab62fa0", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "5ecde79d-0195-42c9-b7b3-fe8faf5b0481", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"RESET_PASSWORD_BAD_TOKEN\"\n}" - }, - { - "id": "f8f33866-5bb6-4508-87c2-101788edfc65", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\",\n \"password\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/reset-password", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "reset-password" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Verify:Request-Token", - "id": "47f4f564-b6a0-4494-a7d0-0eb6bf34930a", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "response": [ - { - "id": "dab36f41-b499-4589-8cb9-2cbb6b2293ac", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "status": "Accepted", - "code": 202, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{}" - }, - { - "id": "fc1c706d-a387-435f-93ff-68ff476ca203", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"email\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/request-verify-token", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "request-verify-token" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - }, - { - "name": "Verify:Verify", - "id": "1489c11c-d22e-4cd9-ae0c-8c2e125a1604", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "response": [ - { - "id": "880a8a8d-fa85-4800-8dee-0e8bec89160f", - "name": "Successful Response", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"id\": \"5eb7cf5a86d9755df3a6c593\",\n \"email\": \"qogx2qLhhK@vEVabMIJJeWoqgLt.ay\",\n \"first_name\": \"dolore exercitation incididunt enim Excepteur\",\n \"last_name\": \"sit incididunt adipisicing ex\",\n \"is_active\": true,\n \"is_superuser\": false,\n \"is_verified\": false\n}" - }, - { - "id": "8717995f-5b42-4ae4-a615-94f2e91420f6", - "name": "Bad Request", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "Bad Request", - "code": 400, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": \"VERIFY_USER_BAD_TOKEN\"\n}" - }, - { - "id": "39f9106f-3e15-4065-853a-bc90e5b7c79b", - "name": "Validation Error", - "originalRequest": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Accept", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}/auth/verify", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "auth", - "verify" - ] - } - }, - "status": "Unprocessable Entity (WebDAV) (RFC 4918)", - "code": 422, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "enabled": true - } - ], - "cookie": [], - "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"ea\",\n \"eiusmod sunt velit\"\n ],\n \"msg\": \"in dolor quis cillum\",\n \"type\": \"ipsum ut sint\"\n },\n {\n \"loc\": [\n \"consequ\",\n \"deserunt fugiat aute occaecat pariatur\"\n ],\n \"msg\": \"in aute consectetur eiusmod\",\n \"type\": \"culpa deserunt minim voluptate dolor\"\n }\n ]\n}" - } - ] - } - ], - "id": "7a081837-6013-4240-9a37-65bac72d195a" - } - ], - "variable": [ - { - "id": "21df3ded-f1d7-49d4-9c9c-5d720af6e4fc", - "key": "baseUrl", - "value": "/" - } - ] -} \ No newline at end of file diff --git a/postman/schemas/index Copy.json b/postman/schemas/index Copy.json deleted file mode 100644 index 8349068..0000000 --- a/postman/schemas/index Copy.json +++ /dev/null @@ -1,92 +0,0 @@ -{"openapi":"3.0.2","info":{"title":"Polling App","description":"A REST API to manage users and polls","version":"0.0.5"},"paths":{"/groups/":{"get":{"tags":["Groups"],"summary":"List Groups","description":"## List all groups that the user is a member of. -This endpoint can be used to search for groups by name or by member. -This might be replaces later with a more robust search endpoint combined with a simple GET endpoint for listing all groups from search. -Returns a list of groups that match the search criteria. If no groups are found, an empty list is returned. - -### Parameters -User can pass in a group name and/or a member's information to search for. -If no parameters are passed in, all groups that the user is a member of will be returned. -If user is a superuser, all groups in the database will be returned. - -**group_name**: The name of the group to search for. -**member_data**: Either email or User id of the member to search for.","operationId":"list_groups_groups__get","parameters":[{"required":false,"schema":{"title":"Group Name","type":"string"},"name":"group_name","in":"query"},{"required":false,"schema":{"title":"Member Data","anyOf":[{"type":"string","example":"5eb7cf5a86d9755df3a6c593"},{"type":"string","format":"email"}]},"name":"member_data","in":"query"}],"responses":{"200":{"description":"List all groups","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupList"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["Groups"],"summary":"Create Group","description":"## Create a new group -This endpoint creates a new group with the user as the owner, admin, and member. -If the group is successfully created, the group's information is returned. - -### Parameters -**name**: The name of the group. Must be unique(per user). -**description**: A short description of the group.","operationId":"create_group_groups__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreateIn"}}},"required":true},"responses":{"201":{"description":"Create new group","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreateOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}":{"get":{"tags":["Groups"],"summary":"Get Group","description":"## Get group by id -This endpoint returns the group's information if the user is a member of the group: the group's name, description, and owner information. - -### Parameters -**group_id**: The id of the group to get.","operationId":"get_group_groups__group_id__get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get group by id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupReadFull"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"put":{"tags":["Groups"],"summary":"Update Group","description":"## Update a group -Updates a group's information if the user is the owner of the group. - -### Parameters -**group_id**: The id of the group to update.","operationId":"update_group_groups__group_id__put","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string"},"name":"group_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupUpdateIn"}}},"required":true},"responses":{"200":{"description":"Update a group","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Groups"],"summary":"Delete Group","description":"## Delete a group -Deletes a group if the user is the owner of the group. The group is also removed from the user's groups list. - -### Parameters -**group_id**: The id of the group to delete.","operationId":"delete_group_groups__group_id__delete","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Delete group","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/owner":{"get":{"tags":["Members"],"summary":"Get Group Owner","description":"## Get group owner -Returns the owner of the group if the user is a member of the group or a superuser. - -### Parameters -**group_id**: The id of the group to update.","operationId":"get_group_owner_groups__group_id__owner_get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get group owner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserReadBasicInfo"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/admins/":{"get":{"tags":["Members"],"summary":"Get Group Admins","description":"## Get list of group admins -Returns the list of group members with admin privilege. -The user must be a member of the group or a superuser. - -### Parameters -**group_id**: The id of the group to update.","operationId":"get_group_admins_groups__group_id__admins__get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get list of group administrators","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupReadMembers"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/users":{"get":{"tags":["Members"],"summary":"Get Group Users","description":"## Get list of group users -Returns the list of group members with user only privilege. -The user must be a member of the group or a superuser to access this endpoint. - -### Parameters -**group_id**: The id of the group to update.","operationId":"get_group_users_groups__group_id__users_get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get group members","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupReadMembers"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/members":{"get":{"tags":["Members"],"summary":"Get Group Members","description":"## Get list of group users -Returns the list of group members with role. -The user must be a member of the group or a superuser to access this endpoint. - -### Body -**member**: list of members and their roles. Check the example for more details.","operationId":"get_group_members_groups__group_id__members_get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get group members","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupReadMembers"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["Members"],"summary":"Add User To Group","description":"## Add member(s) to a group. -This route adds a user or multiple users to a group with a specified role. -The front-end application must do validation to ensure that the user exists in the database and is not already a member of the group. -This function also does the same validation checks; However, no users will be added -if any error occurs. - -### Parameters -**group_id**: The id of the group to update. - -### Body -The function takes a list of JSON objects(Models) with email of the new user and the -role(privilege level) in the group. Check the example for more details. - -Possible outcomes: - - The function will return a list of emails of users that were not found in the database. - - The function will return an error if a user is already a member of the group - - The function will successfully add the users to the group","operationId":"add_user_to_group_groups__group_id__members_post","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupAddMembers"}}},"required":true},"responses":{"200":{"description":"Add user(s) to a group","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/member/{user_id}":{"get":{"tags":["Members"],"summary":"Get Member Details","description":"## Get member details -Returns the details of a member of a group. -The user must be a member of the group or a superuser to access this endpoint.","operationId":"get_member_details_groups__group_id__member__user_id__get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"},{"required":true,"schema":{"title":"User Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"user_id","in":"path"}],"responses":{"200":{"description":"Get member details","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["Members"],"summary":"Remove Member","description":"## Remove a member from a group -This route removes a member from a group. The user must be an admin of the group to remove a member. -The owner of the group cannot be removed. -The user cannot remove themselves from the group. (subject to change in the future)","operationId":"remove_member_groups__group_id__member__user_id__delete","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"},{"required":true,"schema":{"title":"User Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"user_id","in":"path"}],"responses":{"200":{"description":"Remove a member from a group","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"patch":{"tags":["Members"],"summary":"Promote User","description":"## Promote or demote a group member -This route promotes a member with a user privilege to an admin or demotes an admin to a regular user. -The owner of the group cannot be demoted. The user must be an admin of the group to promote or demote a member. -If the user new role, specified in the body, is the same as the current role, the function will return success but will not change the role.","operationId":"promote_user_groups__group_id__member__user_id__patch","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"group_id","in":"path"},{"required":true,"schema":{"title":"User Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"user_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupMemberUpdateRole"}}},"required":true},"responses":{"200":{"description":"Promote a member to admin","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/groups":{"get":{"tags":["Users"],"summary":"List My Groups","description":"## Get current user groups - -This route returns all groups that currently logged in user is a member of, with the user's role in that group.","operationId":"list_my_groups_users_groups_get","responses":{"200":{"description":"List of groups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupList"}}}},"404":{"description":"User not found"}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{user_id}/groups":{"get":{"tags":["Users"],"summary":"List User Groups","description":"## Delete current user account - -This route, finds user by provided id, or raises a HTTP exception (User not found). -If user is found, lists all groups that a user is a member of, with the user's role in that group. - -### Request Query Parameters - -**user_id**: id of the user whose groups are to be listed","operationId":"list_user_groups_users__user_id__groups_get","parameters":[{"required":true,"schema":{"title":"User Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":"user_id","in":"path"}],"responses":{"200":{"description":"List of groups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupList"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/me":{"get":{"tags":["Users"],"summary":"Users:Current User","operationId":"users_current_user_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["Users"],"summary":"Delete User","description":"## Delete current user account - -This route deletes the account of the currently logged in user. - -### Request body - -- **user** - User object - -### Expected Response - -**204** - *The account has been deleted*","operationId":"delete_user_users_me_delete","responses":{"204":{"description":"The account has been deleted"},"404":{"description":"User not found"},"500":{"description":"User was not deleted"}},"security":[{"OAuth2PasswordBearer":[]}]},"patch":{"tags":["Users"],"summary":"Users:Patch Current User","operationId":"users_patch_current_user_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"UPDATE_USER_EMAIL_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"UPDATE_USER_EMAIL_ALREADY_EXISTS"}},"UPDATE_USER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"UPDATE_USER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/jwt/login":{"post":{"tags":["Auth"],"summary":"Auth:Jwt.Login","operationId":"auth_jwt_login_auth_jwt_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_auth_jwt_login_auth_jwt_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BearerResponse"},"example":{"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOTIyMWZmYzktNjQwZi00MzcyLTg2ZDMtY2U2NDJjYmE1NjAzIiwiYXVkIjoiZmFzdGFwaS11c2VyczphdXRoIiwiZXhwIjoxNTcxNTA0MTkzfQ.M10bjOe45I5Ncu_uXvOmVV8QxnL-nZfcH96U90JaocI","token_type":"bearer"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"LOGIN_BAD_CREDENTIALS":{"summary":"Bad credentials or the user is inactive.","value":{"detail":"LOGIN_BAD_CREDENTIALS"}},"LOGIN_USER_NOT_VERIFIED":{"summary":"The user is not verified.","value":{"detail":"LOGIN_USER_NOT_VERIFIED"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/jwt/logout":{"post":{"tags":["Auth"],"summary":"Auth:Jwt.Logout","operationId":"auth_jwt_logout_auth_jwt_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing token or inactive user."}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/register":{"post":{"tags":["Auth"],"summary":"Register:Register","operationId":"register_register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"REGISTER_USER_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"REGISTER_USER_ALREADY_EXISTS"}},"REGISTER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"REGISTER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/forgot-password":{"post":{"tags":["Auth"],"summary":"Reset:Forgot Password","operationId":"reset_forgot_password_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reset_forgot_password_auth_forgot_password_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset-password":{"post":{"tags":["Auth"],"summary":"Reset:Reset Password","operationId":"reset_reset_password_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reset_reset_password_auth_reset_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"RESET_PASSWORD_BAD_TOKEN":{"summary":"Bad or expired token.","value":{"detail":"RESET_PASSWORD_BAD_TOKEN"}},"RESET_PASSWORD_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"RESET_PASSWORD_INVALID_PASSWORD","reason":"Password should be at least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/request-verify-token":{"post":{"tags":["Auth"],"summary":"Verify:Request-Token","operationId":"verify_request_token_auth_request_verify_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_verify_request_token_auth_request_verify_token_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify":{"post":{"tags":["Auth"],"summary":"Verify:Verify","operationId":"verify_verify_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_verify_verify_auth_verify_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"VERIFY_USER_BAD_TOKEN":{"summary":"Bad token, not existing user ornot the e-mail currently set for the user.","value":{"detail":"VERIFY_USER_BAD_TOKEN"}},"VERIFY_USER_ALREADY_VERIFIED":{"summary":"The user is already verified.","value":{"detail":"VERIFY_USER_ALREADY_VERIFIED"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{id}":{"get":{"tags":["Users"],"summary":"Users:User","operationId":"users_user_users__id__get","parameters":[{"required":true,"schema":{"title":"Id"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["Users"],"summary":"Users:Delete User","operationId":"users_delete_user_users__id__delete","parameters":[{"required":true,"schema":{"title":"Id"},"name":"id","in":"path"}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"patch":{"tags":["Users"],"summary":"Users:Patch User","operationId":"users_patch_user_users__id__patch","parameters":[{"required":true,"schema":{"title":"Id"},"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"UPDATE_USER_EMAIL_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"UPDATE_USER_EMAIL_ALREADY_EXISTS"}},"UPDATE_USER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"UPDATE_USER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}}},"components":{"schemas":{"BearerResponse":{"title":"BearerResponse","required":["access_token","token_type"],"type":"object","properties":{"access_token":{"title":"Access Token","type":"string"},"token_type":{"title":"Token Type","type":"string"}}},"Body_auth_jwt_login_auth_jwt_login_post":{"title":"Body_auth_jwt_login_auth_jwt_login_post","required":["username","password"],"type":"object","properties":{"grant_type":{"title":"Grant Type","pattern":"password","type":"string"},"username":{"title":"Username","type":"string"},"password":{"title":"Password","type":"string"},"scope":{"title":"Scope","type":"string","default":""},"client_id":{"title":"Client Id","type":"string"},"client_secret":{"title":"Client Secret","type":"string"}}},"Body_reset_forgot_password_auth_forgot_password_post":{"title":"Body_reset_forgot_password_auth_forgot_password_post","required":["email"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"}}},"Body_reset_reset_password_auth_reset_password_post":{"title":"Body_reset_reset_password_auth_reset_password_post","required":["token","password"],"type":"object","properties":{"token":{"title":"Token","type":"string"},"password":{"title":"Password","type":"string"}}},"Body_verify_request_token_auth_request_verify_token_post":{"title":"Body_verify_request_token_auth_request_verify_token_post","required":["email"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"}}},"Body_verify_verify_auth_verify_post":{"title":"Body_verify_verify_auth_verify_post","required":["token"],"type":"object","properties":{"token":{"title":"Token","type":"string"}}},"ErrorModel":{"title":"ErrorModel","required":["detail"],"type":"object","properties":{"detail":{"title":"Detail","anyOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"string"}}]}}},"GroupAddMembers":{"title":"GroupAddMembers","required":["members"],"type":"object","properties":{"members":{"title":"Members","type":"array","items":{"$ref":"#/components/schemas/UserAddToGroup"}}},"example":{"members":[{"email":"user1@example.com","role":"admin"},{"email":"user2@example.com","role":"user"}]}},"GroupCreateIn":{"title":"GroupCreateIn","type":"object","properties":{"name":{"title":"Name","maxLength":50,"minLength":3,"pattern":"^[A-Z][A-Za-z]{2,}([ ]([0-9]+|[A-Z][A-Za-z]*))*$","type":"string","default":""},"description":{"title":"Description","maxLength":300,"type":"string","default":""}},"example":{"name":"Group 01","description":"My first Group"}},"GroupCreateOut":{"title":"GroupCreateOut","required":["id","name"],"type":"object","properties":{"message":{"title":"Message","type":"string","default":"Group created successfully"},"id":{"title":"Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"name":{"title":"Name","type":"string"}}},"GroupList":{"title":"GroupList","required":["groups"],"type":"object","properties":{"groups":{"title":"Groups","type":"array","items":{"$ref":"#/components/schemas/GroupReadSimple"}}},"example":{"groups":[{"name":"Group 01","role":"user"},{"name":"Group 02","role":"user"},{"name":"Group 03","role":"admin"}]}},"GroupMember":{"title":"GroupMember","required":["email","first_name","last_name"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"},"first_name":{"title":"First Name","type":"string"},"last_name":{"title":"Last Name","type":"string"},"role":{"title":"Role","type":"string","default":"user"}},"example":{"email":"user@example.com","first_name":"John","last_name":"Doe","role":"user"}},"GroupMemberUpdateRole":{"title":"GroupMemberUpdateRole","required":["role"],"type":"object","properties":{"role":{"title":"Role","type":"string","example":"admin"}}},"GroupReadFull":{"title":"GroupReadFull","required":["name","description","owner_name","owner_email"],"type":"object","properties":{"name":{"title":"Name","type":"string","example":"Group 01"},"description":{"title":"Description","type":"string"},"owner_name":{"title":"Owner Name","type":"string"},"owner_email":{"title":"Owner Email","type":"string","format":"email"}},"example":{"name":"Example Group","description":"This is an example group","owner_name":"John Doe","owner_email":"jdoe@example.com"}},"GroupReadMembers":{"title":"GroupReadMembers","required":["members"],"type":"object","properties":{"members":{"title":"Members","type":"array","items":{"$ref":"#/components/schemas/GroupMember"}}},"example":{"members":[{"email":"jdoe@example.com","first_name":"John","last_name":"Doe","role":"admin"},{"email":"jsmith@example.com","first_name":"Jack","last_name":"Smith","role":"user"}]}},"GroupReadSimple":{"title":"GroupReadSimple","required":["name","role"],"type":"object","properties":{"name":{"title":"Name","type":"string"},"role":{"title":"Role","type":"string"}},"example":{"name":"Group 01","role":"user"}},"GroupUpdateIn":{"title":"GroupUpdateIn","type":"object","properties":{"name":{"title":"Name","maxLength":50,"minLength":3,"pattern":"^[A-Z][A-Za-z]{2,}([ ]([0-9]+|[A-Z][A-Za-z]*))*$","type":"string","default":""},"description":{"title":"Description","maxLength":300,"type":"string","default":""}}},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"UserAddToGroup":{"title":"UserAddToGroup","required":["email"],"type":"object","properties":{"id":{"title":"Id"},"email":{"title":"Email","type":"string","format":"email"},"is_active":{"title":"Is Active","type":"boolean","default":true},"is_superuser":{"title":"Is Superuser","type":"boolean","default":false},"is_verified":{"title":"Is Verified","type":"boolean","default":false},"role":{"title":"Role","maxLength":5,"minLength":4,"pattern":"^(user|admin)$","type":"string","description":"Role of the user in the group","default":"user"}},"description":"Base User model.","example":{"email":"email@example.com","role":"admin"}},"UserCreate":{"title":"UserCreate","required":["email","password"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"},"password":{"title":"Password","type":"string"},"is_active":{"title":"Is Active","type":"boolean","default":true},"is_superuser":{"title":"Is Superuser","type":"boolean","default":false},"is_verified":{"title":"Is Verified","type":"boolean","default":false},"first_name":{"title":"First Name","maxLength":20,"minLength":2,"pattern":"^[A-Z][a-z]*$","type":"string"},"last_name":{"title":"Last Name","maxLength":20,"minLength":2,"pattern":"^[A-Z][a-z]*$","type":"string"}},"example":{"email":"user@example.com","password":"pass1234","first_name":"John","last_name":"Smith"}},"UserRead":{"title":"UserRead","required":["id","email","first_name","last_name"],"type":"object","properties":{"id":{"title":"Id","type":"string","example":"5eb7cf5a86d9755df3a6c593"},"email":{"title":"Email","type":"string","format":"email"},"is_active":{"title":"Is Active","type":"boolean","default":true},"is_superuser":{"title":"Is Superuser","type":"boolean","default":false},"is_verified":{"title":"Is Verified","type":"boolean","default":false},"first_name":{"title":"First Name","type":"string"},"last_name":{"title":"Last Name","type":"string"}},"description":"Base User model."},"UserReadBasicInfo":{"title":"UserReadBasicInfo","required":["email","first_name","last_name"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"},"first_name":{"title":"First Name","type":"string"},"last_name":{"title":"Last Name","type":"string"}}},"UserUpdate":{"title":"UserUpdate","type":"object","properties":{"password":{"title":"Password","type":"string"},"email":{"title":"Email","type":"string","format":"email"},"is_active":{"title":"Is Active","type":"boolean"},"is_superuser":{"title":"Is Superuser","type":"boolean"},"is_verified":{"title":"Is Verified","type":"boolean"}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"auth/jwt/login"}}}}}} \ No newline at end of file diff --git a/postman/schemas/index.json b/postman/schemas/index.json deleted file mode 100644 index 8ab252a..0000000 --- a/postman/schemas/index.json +++ /dev/null @@ -1,12 +0,0 @@ -{"openapi":"3.0.2","info":{"title":"Polling App","description":"A REST API to manage users and polls","version":"0.0.4"},"paths":{"/groups/":{"get":{"tags":["Groups"],"summary":"List Groups","operationId":"list_groups_groups__get","parameters":[{"required":false,"schema":{"title":"Group Name","type":"string"},"name":"group_name","in":"query"},{"required":false,"schema":{"title":"Member Data","anyOf":[{"type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},{"type":"string","format":"email"}]},"name":"member_data","in":"query"}],"responses":{"200":{"description":"List all groups","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["Groups"],"summary":"Create Group","operationId":"create_group_groups__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreateIn"}}},"required":true},"responses":{"201":{"description":"Create new group","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreateOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}":{"get":{"tags":["Groups"],"summary":"Get Group","operationId":"get_group_groups__group_id__get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get group by id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupReadFull"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["Groups"],"summary":"Delete Group","operationId":"delete_group_groups__group_id__delete","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Delete group","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{id}":{"put":{"tags":["Groups"],"summary":"Update Group","operationId":"update_group_groups__id__put","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupUpdateIn"}}},"required":true},"responses":{"200":{"description":"Update a group","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/groups/{group_id}/owner":{"get":{"tags":["Members"],"summary":"Get Group Owner","operationId":"get_group_owner_groups__group_id__owner_get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get group owner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserReadBasicInfo"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/admins/":{"get":{"tags":["Members"],"summary":"Get Group Admins","operationId":"get_group_admins_groups__group_id__admins__get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get list of group administrators","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupReadMembers"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/users":{"get":{"tags":["Members"],"summary":"Get Group Users","operationId":"get_group_users_groups__group_id__users_get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get group members","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupReadMembers"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/members":{"get":{"tags":["Members"],"summary":"Get Group Members","operationId":"get_group_members_groups__group_id__members_get","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"group_id","in":"path"}],"responses":{"200":{"description":"Get group members","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupReadMembers"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["Members"],"summary":"Add User To Group","description":"Add member(s) to a group. The front-end application must do validation to ensure -that the user exists in the database and is not already a member of the group. -This function also does the same validation checks; However, no users will be added -if any error occurs. - -The function takes a list of JSON objects(Models) with email of the new user and the -role(privilege level) in the group. - -Possible outcomes: - - The function will return a list of emails of users that were not found in the database. - - The function will return an error if a user is already a member of the group - - The function will successfully add the users to the group","operationId":"add_user_to_group_groups__group_id__members_post","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"group_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupAddMembers"}}},"required":true},"responses":{"200":{"description":"Add user(s) to a group","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/groups/{group_id}/member/{email}":{"delete":{"tags":["Members"],"summary":"Remove User","operationId":"remove_user_groups__group_id__member__email__delete","parameters":[{"required":true,"schema":{"title":"Group Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"group_id","in":"path"},{"required":true,"schema":{"title":"Email","type":"string"},"name":"email","in":"path"}],"responses":{"200":{"description":"Remove a member from a group","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/groups":{"get":{"tags":["Users"],"summary":"List User Groups","operationId":"list_user_groups_users_groups_get","parameters":[{"required":false,"schema":{"title":"User Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":"user_id","in":"query"}],"responses":{"200":{"description":"List all groups that a user is a member of","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/jwt/login":{"post":{"tags":["Auth"],"summary":"Auth:Jwt.Login","operationId":"auth_jwt_login_auth_jwt_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_auth_jwt_login_auth_jwt_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BearerResponse"},"example":{"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOTIyMWZmYzktNjQwZi00MzcyLTg2ZDMtY2U2NDJjYmE1NjAzIiwiYXVkIjoiZmFzdGFwaS11c2VyczphdXRoIiwiZXhwIjoxNTcxNTA0MTkzfQ.M10bjOe45I5Ncu_uXvOmVV8QxnL-nZfcH96U90JaocI","token_type":"bearer"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"LOGIN_BAD_CREDENTIALS":{"summary":"Bad credentials or the user is inactive.","value":{"detail":"LOGIN_BAD_CREDENTIALS"}},"LOGIN_USER_NOT_VERIFIED":{"summary":"The user is not verified.","value":{"detail":"LOGIN_USER_NOT_VERIFIED"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/jwt/logout":{"post":{"tags":["Auth"],"summary":"Auth:Jwt.Logout","operationId":"auth_jwt_logout_auth_jwt_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing token or inactive user."}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/register":{"post":{"tags":["Auth"],"summary":"Register:Register","operationId":"register_register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"REGISTER_USER_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"REGISTER_USER_ALREADY_EXISTS"}},"REGISTER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"REGISTER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/forgot-password":{"post":{"tags":["Auth"],"summary":"Reset:Forgot Password","operationId":"reset_forgot_password_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reset_forgot_password_auth_forgot_password_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset-password":{"post":{"tags":["Auth"],"summary":"Reset:Reset Password","operationId":"reset_reset_password_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reset_reset_password_auth_reset_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"RESET_PASSWORD_BAD_TOKEN":{"summary":"Bad or expired token.","value":{"detail":"RESET_PASSWORD_BAD_TOKEN"}},"RESET_PASSWORD_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"RESET_PASSWORD_INVALID_PASSWORD","reason":"Password should be at least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/request-verify-token":{"post":{"tags":["Auth"],"summary":"Verify:Request-Token","operationId":"verify_request_token_auth_request_verify_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_verify_request_token_auth_request_verify_token_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify":{"post":{"tags":["Auth"],"summary":"Verify:Verify","operationId":"verify_verify_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_verify_verify_auth_verify_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"VERIFY_USER_BAD_TOKEN":{"summary":"Bad token, not existing user ornot the e-mail currently set for the user.","value":{"detail":"VERIFY_USER_BAD_TOKEN"}},"VERIFY_USER_ALREADY_VERIFIED":{"summary":"The user is already verified.","value":{"detail":"VERIFY_USER_ALREADY_VERIFIED"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me":{"get":{"tags":["Users"],"summary":"Users:Current User","operationId":"users_current_user_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."}},"security":[{"OAuth2PasswordBearer":[]}]},"patch":{"tags":["Users"],"summary":"Users:Patch Current User","operationId":"users_patch_current_user_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"UPDATE_USER_EMAIL_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"UPDATE_USER_EMAIL_ALREADY_EXISTS"}},"UPDATE_USER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"UPDATE_USER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{id}":{"get":{"tags":["Users"],"summary":"Users:User","operationId":"users_user_users__id__get","parameters":[{"required":true,"schema":{"title":"Id"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["Users"],"summary":"Users:Delete User","operationId":"users_delete_user_users__id__delete","parameters":[{"required":true,"schema":{"title":"Id"},"name":"id","in":"path"}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"patch":{"tags":["Users"],"summary":"Users:Patch User","operationId":"users_patch_user_users__id__patch","parameters":[{"required":true,"schema":{"title":"Id"},"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"UPDATE_USER_EMAIL_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"UPDATE_USER_EMAIL_ALREADY_EXISTS"}},"UPDATE_USER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"UPDATE_USER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}}},"components":{"schemas":{"BearerResponse":{"title":"BearerResponse","required":["access_token","token_type"],"type":"object","properties":{"access_token":{"title":"Access Token","type":"string"},"token_type":{"title":"Token Type","type":"string"}}},"Body_auth_jwt_login_auth_jwt_login_post":{"title":"Body_auth_jwt_login_auth_jwt_login_post","required":["username","password"],"type":"object","properties":{"grant_type":{"title":"Grant Type","pattern":"password","type":"string"},"username":{"title":"Username","type":"string"},"password":{"title":"Password","type":"string"},"scope":{"title":"Scope","type":"string","default":""},"client_id":{"title":"Client Id","type":"string"},"client_secret":{"title":"Client Secret","type":"string"}}},"Body_reset_forgot_password_auth_forgot_password_post":{"title":"Body_reset_forgot_password_auth_forgot_password_post","required":["email"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"}}},"Body_reset_reset_password_auth_reset_password_post":{"title":"Body_reset_reset_password_auth_reset_password_post","required":["token","password"],"type":"object","properties":{"token":{"title":"Token","type":"string"},"password":{"title":"Password","type":"string"}}},"Body_verify_request_token_auth_request_verify_token_post":{"title":"Body_verify_request_token_auth_request_verify_token_post","required":["email"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"}}},"Body_verify_verify_auth_verify_post":{"title":"Body_verify_verify_auth_verify_post","required":["token"],"type":"object","properties":{"token":{"title":"Token","type":"string"}}},"ErrorModel":{"title":"ErrorModel","required":["detail"],"type":"object","properties":{"detail":{"title":"Detail","anyOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"string"}}]}}},"GroupAddMembers":{"title":"GroupAddMembers","required":["members"],"type":"object","properties":{"members":{"title":"Members","type":"array","items":{"$ref":"#/components/schemas/UserAddToGroup"}}},"example":{"members":[{"email":"user1@example.com","role":"admin"},{"email":"user2@example.com","role":"user"}]}},"GroupCreateIn":{"title":"GroupCreateIn","type":"object","properties":{"name":{"title":"Name","maxLength":50,"minLength":3,"pattern":"^[A-Z][A-Za-z]{2,}([ ]([0-9]+|[A-Z][A-Za-z]*))*$","type":"string","default":""},"description":{"title":"Description","maxLength":300,"type":"string","default":""}},"example":{"name":"Group 01","description":"My first Group"}},"GroupCreateOut":{"title":"GroupCreateOut","required":["id","name"],"type":"object","properties":{"message":{"title":"Message","type":"string","default":"Group created successfully"},"id":{"title":"Id","type":"string","examples":["5eb7cf5a86d9755df3a6c593","5eb7cfb05e32e07750a1756a"]},"name":{"title":"Name","type":"string"}}},"GroupMember":{"title":"GroupMember","required":["email","first_name","last_name"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"},"first_name":{"title":"First Name","type":"string"},"last_name":{"title":"Last Name","type":"string"},"role":{"title":"Role","type":"string","default":"user"}},"example":{"email":"user@example.com","first_name":"John","last_name":"Doe","role":"user"}},"GroupReadFull":{"title":"GroupReadFull","required":["name","description","owner_name","owner_email"],"type":"object","properties":{"name":{"title":"Name","type":"string"},"description":{"title":"Description","type":"string"},"owner_name":{"title":"Owner Name","type":"string"},"owner_email":{"title":"Owner Email","type":"string","format":"email"}}},"GroupReadMembers":{"title":"GroupReadMembers","required":["members"],"type":"object","properties":{"members":{"title":"Members","type":"array","items":{"$ref":"#/components/schemas/GroupMember"}}},"example":{"members":[{"email":"jdoe@example.com","first_name":"John","last_name":"Doe","role":"admin"},{"email":"jsmith@example.com","first_name":"Jack","last_name":"Smith","role":"user"}]}},"GroupUpdateIn":{"title":"GroupUpdateIn","type":"object","properties":{"name":{"title":"Name","maxLength":50,"minLength":3,"pattern":"^[A-Z][A-Za-z]{2,}([ ]([0-9]+|[A-Z][A-Za-z]*))*$","type":"string","default":""},"description":{"title":"Description","maxLength":300,"type":"string","default":""}}},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"UserAddToGroup":{"title":"UserAddToGroup","required":["email"],"type":"object","properties":{"id":{"title":"Id"},"email":{"title":"Email","type":"string","format":"email"},"is_active":{"title":"Is Active","type":"boolean","default":true},"is_superuser":{"title":"Is Superuser","type":"boolean","default":false},"is_verified":{"title":"Is Verified","type":"boolean","default":false},"role":{"title":"Role","maxLength":5,"minLength":4,"pattern":"^(user|admin)$","type":"string","description":"Role of the user in the group","default":"user"}},"description":"Base User model.","example":{"email":"email@example.com","role":"admin"}},"UserCreate":{"title":"UserCreate","required":["email","password"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"},"password":{"title":"Password","type":"string"},"is_active":{"title":"Is Active","type":"boolean","default":true},"is_superuser":{"title":"Is Superuser","type":"boolean","default":false},"is_verified":{"title":"Is Verified","type":"boolean","default":false},"first_name":{"title":"First Name","maxLength":20,"minLength":2,"pattern":"^[A-Z][a-z]*$","type":"string"},"last_name":{"title":"Last Name","maxLength":20,"minLength":2,"pattern":"^[A-Z][a-z]*$","type":"string"}},"example":{"email":"user@example.com","password":"pass1234","first_name":"John","last_name":"Smith"}},"UserRead":{"title":"UserRead","required":["email","first_name","last_name"],"type":"object","properties":{"id":{"title":"Id"},"email":{"title":"Email","type":"string","format":"email"},"is_active":{"title":"Is Active","type":"boolean","default":true},"is_superuser":{"title":"Is Superuser","type":"boolean","default":false},"is_verified":{"title":"Is Verified","type":"boolean","default":false},"first_name":{"title":"First Name","type":"string"},"last_name":{"title":"Last Name","type":"string"}},"description":"Base User model."},"UserReadBasicInfo":{"title":"UserReadBasicInfo","required":["email","first_name","last_name"],"type":"object","properties":{"email":{"title":"Email","type":"string","format":"email"},"first_name":{"title":"First Name","type":"string"},"last_name":{"title":"Last Name","type":"string"}}},"UserUpdate":{"title":"UserUpdate","type":"object","properties":{"password":{"title":"Password","type":"string"},"email":{"title":"Email","type":"string","format":"email"},"is_active":{"title":"Is Active","type":"boolean"},"is_superuser":{"title":"Is Superuser","type":"boolean"},"is_verified":{"title":"Is Verified","type":"boolean"}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"auth/jwt/login"}}}}}} \ No newline at end of file