13
を使用してAPIを記述するためにRAMLを使用する私はのOAuth2はどのようにのOAuth2
を使用してAPIを記述するためにRAMLを使用したい誰もが、私は私のAPIのための私自身のRAMLと比較するために使用できる溶液または例がありますか? https://github.com/raml-org/raml-spec/blob/master/08_security.md#declarationから
を使用してAPIを記述するためにRAMLを使用する私はのOAuth2はどのようにのOAuth2
を使用してAPIを記述するためにRAMLを使用したい誰もが、私は私のAPIのための私自身のRAMLと比較するために使用できる溶液または例がありますか? https://github.com/raml-org/raml-spec/blob/master/08_security.md#declarationから
:
securitySchemes: - oauth_2_0: description: | Dropbox supports OAuth 2.0 for authenticating all API requests. type: OAuth 2.0 describedBy: headers: Authorization: description: | Used to send a valid OAuth 2 access token. Do not use with the "access_token" query string parameter. type: string queryParameters: access_token: description: | Used to send a valid OAuth 2 access token. Do not use together with the "Authorization" header type: string responses: 401: description: | Bad or expired token. This can happen if the user or Dropbox revoked or expired an access token. To fix, you should re- authenticate the user. 403: description: | Bad OAuth request (wrong consumer key, bad nonce, expired timestamp...). Unfortunately, re-authenticating the user won't help here. settings: authorizationUri: https://www.dropbox.com/1/oauth2/authorize accessTokenUri: https://api.dropbox.com/1/oauth2/token authorizationGrants: [ code, token ]
これは私が想定しているram 0.8の標準です。有効な宣言は1.0のように見えますか? –
は、なぜこれが閉鎖されましたか? – Nikos
閉じる理由が上に目立つように表示されます。オフサイトのリソースを要求しているため、あなたの質問は話題にはなりません。 – njuffa
@njuffa私は解決策を尋ねました。私は人気のある答えを得ました!このサイトは何ではないのですか? – Nikos