How to specify OAuth scopes in RAML


#1

Hi, does RAML support OAuth scopes, in that i can specific scopes for a resource?


#2

You might have a look to the RAML 0.8 spec. Right in the end of this document you find one example defining a resource secured by OAuth with a scope:

securedBy: [null, oauth_2_0: { scopes: [ ADMINISTRATOR ] }