gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

swagger.go (2723B)


      1 // GoToSocial
      2 // Copyright (C) GoToSocial Authors admin@gotosocial.org
      3 // SPDX-License-Identifier: AGPL-3.0-or-later
      4 //
      5 // This program is free software: you can redistribute it and/or modify
      6 // it under the terms of the GNU Affero General Public License as published by
      7 // the Free Software Foundation, either version 3 of the License, or
      8 // (at your option) any later version.
      9 //
     10 // This program is distributed in the hope that it will be useful,
     11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 // GNU Affero General Public License for more details.
     14 //
     15 // You should have received a copy of the GNU Affero General Public License
     16 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 
     18 // GoToSocial Swagger documentation.
     19 //
     20 //	Schemes: https, http
     21 //	BasePath: /
     22 //	Version: REPLACE_ME
     23 //	Host: example.org
     24 //	License: AGPL3 https://www.gnu.org/licenses/agpl-3.0.en.html
     25 //	Contact: GoToSocial Authors <admin@gotosocial.org>
     26 //
     27 //	SecurityDefinitions:
     28 //	  OAuth2 Bearer:
     29 //	    type: oauth2
     30 //	    flow: accessCode
     31 //	    authorizationUrl: https://example.org/oauth/authorize
     32 //	    tokenUrl: https://example.org/oauth/token
     33 //	    scopes:
     34 //	      read: grants read access to everything
     35 //	      read:accounts: grants read access to accounts
     36 //	      read:blocks: grant read access to blocks
     37 //	      read:custom_emojis: grant read access to custom_emojis
     38 //	      read:favourites: grant read access to favourites
     39 //	      read:follows: grant read access to follows
     40 //	      read:lists: grant read access to lists
     41 //	      read:media: grant read access to media
     42 //	      read:search: grant read access to searches
     43 //	      read:statuses: grants read access to statuses
     44 //	      read:streaming: grants read access to streaming api
     45 //	      read:user: grants read access to user-level info
     46 //	      read:notifications: grants read access to notifications
     47 //	      write: grants write access to everything
     48 //	      write:accounts: grants write access to accounts
     49 //	      write:blocks: grants write access to blocks
     50 //	      write:follows: grants write access to follows
     51 //	      write:lists: grants write access to lists
     52 //	      write:media: grants write access to media
     53 //	      write:statuses: grants write access to statuses
     54 //	      write:user: grants write access to user-level info
     55 //	      admin: grants admin access to everything
     56 //	      admin:accounts: grants admin access to accounts
     57 //	  OAuth2 Application:
     58 //	    type: oauth2
     59 //	    flow: application
     60 //	    tokenUrl: https://example.org/oauth/token
     61 //	    scopes:
     62 //	      write:accounts: grants write access to accounts
     63 //
     64 // swagger:meta
     65 package docs