// responses:
// "201":
// "$ref": "#/responses/AccessToken"
+ // "400":
+ // "$ref": "#/responses/error"
form := web.GetForm(ctx).(*api.CreateAccessTokenOption)
// responses:
// "204":
// "$ref": "#/responses/empty"
+ // "404":
+ // "$ref": "#/responses/notFound"
// "422":
// "$ref": "#/responses/error"
// responses:
// "201":
// "$ref": "#/responses/OAuth2Application"
+ // "400":
+ // "$ref": "#/responses/error"
data := web.GetForm(ctx).(*api.CreateOAuth2ApplicationOptions)
// responses:
// "204":
// "$ref": "#/responses/empty"
+ // "404":
+ // "$ref": "#/responses/notFound"
appID := ctx.ParamsInt64(":id")
if err := models.DeleteOAuth2Application(appID, ctx.User.ID); err != nil {
if models.IsErrOAuthApplicationNotFound(err) {
// responses:
// "200":
// "$ref": "#/responses/OAuth2Application"
+ // "404":
+ // "$ref": "#/responses/notFound"
appID := ctx.ParamsInt64(":id")
app, err := models.GetOAuth2ApplicationByID(appID)
if err != nil {
// responses:
// "200":
// "$ref": "#/responses/OAuth2Application"
+ // "404":
+ // "$ref": "#/responses/notFound"
appID := ctx.ParamsInt64(":id")
data := web.GetForm(ctx).(*api.CreateOAuth2ApplicationOptions)
"responses": {
"201": {
"$ref": "#/responses/OAuth2Application"
+ },
+ "400": {
+ "$ref": "#/responses/error"
}
}
}
"responses": {
"200": {
"$ref": "#/responses/OAuth2Application"
+ },
+ "404": {
+ "$ref": "#/responses/notFound"
}
}
},
"responses": {
"204": {
"$ref": "#/responses/empty"
+ },
+ "404": {
+ "$ref": "#/responses/notFound"
}
}
},
"responses": {
"200": {
"$ref": "#/responses/OAuth2Application"
+ },
+ "404": {
+ "$ref": "#/responses/notFound"
}
}
}
"responses": {
"201": {
"$ref": "#/responses/AccessToken"
+ },
+ "400": {
+ "$ref": "#/responses/error"
}
}
}
"204": {
"$ref": "#/responses/empty"
},
+ "404": {
+ "$ref": "#/responses/notFound"
+ },
"422": {
"$ref": "#/responses/error"
}