Sha256: 90294d74e48a8575df37bebabba4a5cf84e99de0a56171d1e6f604a0e653c72a

Contents?: true

Size: 1.72 KB

Versions: 7

Compression:

Stored size: 1.72 KB

Contents

#%RAML 0.8
---
title: Example API
baseUri: http://localhost:3000
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 ]
  - oauth_1_0:
      description: |
        OAuth 1.0 continues to be supported for all API requests, but OAuth 2.0 is now preferred.
      type: OAuth 1.0
      settings:
        requestTokenUri: https://api.dropbox.com/1/oauth/request_token
        authorizationUri: https://www.dropbox.com/1/oauth/authorize
        tokenCredentialsUri: https://api.dropbox.com/1/oauth/access_token
  - customHeader:
      description: |
        A custom

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
raml_parser-0.2.5 spec/examples/raml/securityschemes.raml
raml_parser-0.2.4 spec/examples/raml/securityschemes.raml
raml_parser-0.2.3 spec/examples/raml/securityschemes.raml
raml_parser-0.2.2 spec/examples/raml/securityschemes.raml
raml_parser-0.2.1 spec/examples/raml/securityschemes.raml
raml_parser-0.2 spec/examples/raml/securityschemes.raml
raml_parser-0.1 spec/examples/raml/securityschemes.raml