code.gitea.io/gitea@v1.21.7/routers/api/v1/swagger/app.go (about)

     1  // Copyright 2020 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package swagger
     5  
     6  import (
     7  	api "code.gitea.io/gitea/modules/structs"
     8  )
     9  
    10  // OAuth2Application
    11  // swagger:response OAuth2Application
    12  type swaggerResponseOAuth2Application struct {
    13  	// in:body
    14  	Body api.OAuth2Application `json:"body"`
    15  }
    16  
    17  // AccessToken represents an API access token.
    18  // swagger:response AccessToken
    19  type swaggerResponseAccessToken struct {
    20  	// in:body
    21  	Body api.AccessToken `json:"body"`
    22  }