Skip to content

Commit

Permalink
feat: OPTIC-1360: [BE] create Account settings endpoints that handle …
Browse files Browse the repository at this point in the history
…existing functionality in the django template (#41)
  • Loading branch information
mcanu authored Dec 4, 2024
1 parent 44c6562 commit 3cac8a4
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 1 deletion.
13 changes: 13 additions & 0 deletions fern/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
64 changes: 63 additions & 1 deletion fern/openapi/overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3cac8a4

Please sign in to comment.