diff options
| author | 2024-04-17 14:49:20 +0200 | |
|---|---|---|
| committer | 2024-04-17 13:49:20 +0100 | |
| commit | cef9924d9a463df22da273cbca19735ec9e15243 (patch) | |
| tree | 75271d1b4cd1ed8a91ec1d1a6360338866224a7f /docs | |
| parent | [feature] Stub status history endpoint (#2847) (diff) | |
| download | gotosocial-cef9924d9a463df22da273cbca19735ec9e15243.tar.xz | |
[feature] Status source endpoint (#2848)
* [feature] statusSource endpoint
* finish up
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/swagger.yaml | 57 | 
1 files changed, 57 insertions, 0 deletions
| diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 18c22a980..7fb3efe76 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -2399,6 +2399,27 @@ definitions:          type: object          x-go-name: StatusReblogged          x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model +    statusSource: +        description: |- +            StatusSource represents the source text of a +            status as submitted to the API when it was created. +        properties: +            id: +                description: ID of the status. +                example: 01FBVD42CQ3ZEEVMW180SBX03B +                type: string +                x-go-name: ID +            source: +                description: Plain-text source of a status. +                type: string +                x-go-name: Text +            spoiler_text: +                description: Plain-text version of spoiler text. +                type: string +                x-go-name: SpoilerText +        type: object +        x-go-name: StatusSource +        x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model      swaggerCollection:          properties:              '@context': @@ -7693,6 +7714,42 @@ paths:              summary: View accounts that have reblogged/boosted the target status.              tags:                  - statuses +    /api/v1/statuses/{id}/source: +        get: +            operationId: statusSourceGet +            parameters: +                - description: Target status ID. +                  in: path +                  name: id +                  required: true +                  type: string +            produces: +                - application/json +            responses: +                "200": +                    description: "" +                    schema: +                        items: +                            $ref: '#/definitions/statusSource' +                        type: array +                "400": +                    description: bad request +                "401": +                    description: unauthorized +                "403": +                    description: forbidden +                "404": +                    description: not found +                "406": +                    description: not acceptable +                "500": +                    description: internal server error +            security: +                - OAuth2 Bearer: +                    - read:statuses +            summary: View source text of status with the given ID. Requester must own the status. +            tags: +                - statuses      /api/v1/statuses/{id}/unbookmark:          post:              operationId: statusUnbookmark | 
