diff options
| author | 2022-03-15 16:12:35 +0100 | |
|---|---|---|
| committer | 2022-03-15 16:12:35 +0100 | |
| commit | 532c4cc6978a7fe707373106eebade237c89693a (patch) | |
| tree | 937bf0a44ef2a8d8d366786693decf2c65b20db5 /docs/api | |
| parent | [performance] Add dereference shortcuts to avoid making http calls to self (#... (diff) | |
| download | gotosocial-532c4cc6978a7fe707373106eebade237c89693a.tar.xz | |
[feature] Federate local account deletion (#431)
* add account delete to API
* model account delete request
* add AccountDeleteLocal
* federate local account deletes
* add DeleteLocal
* update transport (controller) to allow shortcuts
* delete logic + testing
* update swagger docs
* more tests + fixes
Diffstat (limited to 'docs/api')
| -rw-r--r-- | docs/api/swagger.yaml | 29 | 
1 files changed, 28 insertions, 1 deletions
| diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index f8d1114e7..2e514e414 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -1798,7 +1798,7 @@ info:      name: AGPL3      url: https://www.gnu.org/licenses/agpl-3.0.en.html    title: GoToSocial -  version: 0.0.1 +  version: REPLACE_ME  paths:    /.well-known/nodeinfo:      get: @@ -2191,6 +2191,31 @@ paths:        summary: Unfollow account with id.        tags:        - accounts +  /api/v1/accounts/delete: +    post: +      consumes: +      - multipart/form-data +      operationId: accountDelete +      parameters: +      - description: Password of the account user, for confirmation. +        in: formData +        name: password +        required: true +        type: string +      responses: +        "202": +          description: The account deletion has been accepted and the account will +            be deleted. +        "400": +          description: bad request +        "401": +          description: unauthorized +      security: +      - OAuth2 Bearer: +        - write:accounts +      summary: Delete your account. +      tags: +      - accounts    /api/v1/accounts/relationships:      get:        operationId: accountRelationships @@ -2341,6 +2366,8 @@ paths:            description: bad request          "403":            description: forbidden +        "409": +          description: conflict -- domain/shortcode combo for emoji already exists        security:        - OAuth2 Bearer:          - admin | 
