From 3cac8a4e491e1c5396c2ee3779be2fca61fb1a9f Mon Sep 17 00:00:00 2001 From: Marcel Canu Date: Wed, 4 Dec 2024 16:10:16 -0300 Subject: [PATCH] feat: OPTIC-1360: [BE] create Account settings endpoints that handle existing functionality in the django template (#41) --- fern/openapi/openapi.yaml | 13 ++++++++ fern/openapi/overrides.yaml | 64 ++++++++++++++++++++++++++++++++++++- 2 files changed, 76 insertions(+), 1 deletion(-) diff --git a/fern/openapi/openapi.yaml b/fern/openapi/openapi.yaml index 0cb7bf0..598f2de 100644 --- a/fern/openapi/openapi.yaml +++ b/fern/openapi/openapi.yaml @@ -8279,6 +8279,10 @@ components: description: Allow sending newsletters to user type: boolean nullable: true + date_joined: + title: Date joined + type: string + format: date-time Filter: required: - column @@ -8696,6 +8700,11 @@ components: format: email maxLength: 254 nullable: true + created_at: + title: Created at + type: string + format: date-time + readOnly: true Organization: required: - title @@ -8794,6 +8803,10 @@ components: description: Allow sending newsletters to user type: boolean nullable: true + date_joined: + title: Date joined + type: string + format: date-time created_projects: title: Created projects type: string diff --git a/fern/openapi/overrides.yaml b/fern/openapi/overrides.yaml index 0ea327c..60b6db9 100644 --- a/fern/openapi/overrides.yaml +++ b/fern/openapi/overrides.yaml @@ -2357,6 +2357,42 @@ paths: x-fern-sdk-method-name: createBulk x-fern-audiences: - public + "/api/organizations/{id}/memberships/{user_pk}/": + get: + operationId: api_organizations_memberships_read + summary: Get organization member details + description: Get organization member details by user ID. + parameters: + - name: user_pk + in: path + description: A unique integer value identifying the user to get organization details for. + required: true + schema: + type: integer + responses: + "200": + description: "" + content: + application/json: + schema: + $ref: "#/components/schemas/OrganizationMember" + tags: + - Organizations + x-fern-sdk-group-name: + - organizations + - members + x-fern-sdk-method-name: get + parameters: + - name: id + in: path + required: true + schema: + type: string + - name: user_pk + in: path + required: true + schema: + type: string components: securitySchemes: Token: @@ -2727,7 +2763,33 @@ components: title: Project description: A unique integer value identifying this project. type: integer - + OrganizationMember: + required: + - user + - organization + type: object + properties: + user: + title: User + description: User ID + type: integer + organization: + title: Organization + description: Organization ID + type: integer + contributed_projects_count: + title: Contributed projects count + type: string + readOnly: true + annotations_count: + title: Annotations count + type: string + readOnly: true + created_at: + title: Created at + type: string + format: date-time + readOnly: true requestBodies: api_storages_s3s_createData: content: