Skip to main content

Can we use the Object/Datatype as type for queryParameter property??

 

Example : i have one Object

 

Input.raml

# %RAML 1.0 DataType

type: object

properties:

name?: string

id?: string

 

in API.raml

 

get:

queryParameter:

properties:

input: Input

responses:

200:

body:

application/json:

example: !include examples/deviceHardware.json

Can we use the Input as type for the queryParameter as i need to pass the json input to request URL

 

example of actual URL :

 

www.sample.com?input={"name":"Arjun" , "id":"X34" }

 

Could you please help me on this.

1 answer
0/9000