Documentation ¶
Index ¶
Constants ¶
View Source
const ( // go-raml extension to express Catch-All URL params // for example /path/{path:*} is going to match: // - /path/a -> path = a // - /path/a/b -> path = a/b // - /path/a/b/c -> path = a/b/c CatchAllRoute = "{path:*}" )
Variables ¶
This section is empty.
Functions ¶
func GetResourceParams ¶
GetResourceParams get all params of a resource examples: /users : no params /users/{userId} : params 1 = userId /users/{userId}/address/{addressId : params 1= userId, param 2= addressId
func HasCatchAllInRootRoute ¶
func HasCatchAllInRootRoute(apiDef *raml.APIDefinition) bool
HasCatchAllInRootRoute returns true if the given raml api definition has catch all route as root endpoint
Types ¶
type ClientService ¶
ClientService defines a client service. client service is a module that handle a single root endpoint
func NewClientService ¶
func NewClientService(rootEndpoint, displayName string) ClientService
type Method ¶
type Method struct { *raml.Method MethodName string Endpoint string Resource *raml.Resource // resource object of this method Params string // methods params FuncComments []string // contains filtered or unexported fields }
Method defines base Method struct
func (Method) IsCatchAllRoute ¶
IsCatchAllRoute returns true if this method use go-raml Catch-All route
Click to show internal directories.
Click to hide internal directories.