"If the Authorization header contains an invalid token, is malformed, or is not present, an error will be returned indicating an authorization failure.",
properties:%{
error:%Schema{type::string}
},
example:%{
"error"=>"The access token is invalid."
}
}
)
}
}
end
defpcreate_requestdo
%Schema{
title:"AppCreateRequest",
description:"POST body for creating an app",
type::object,
properties:%{
client_name:%Schema{type::string,description:"A name for your application."},
redirect_uris:%Schema{
type::string,
description:
"Where the user should be redirected after authorization. To display the authorization code to the user instead of redirecting to a web page, use `urn:ietf:wg:oauth:2.0:oob` in this parameter."
},
scopes:%Schema{
type::string,
description:"Space separated list of scopes",
default:"read"
},
website:%Schema{type::string,description:"A URL to the homepage of your app"}