To define an APIKit that receives an array of values through the URL query string, enforcing it using an APIKit router and being able to easily test it on the API Console.
The RAML definition must make use of the queryParameters node and the array builtin type:
#%RAML 1.0
title: test raml
baseUri: http://localhost:8081/api
/test:
get:
queryParameters:
ids:
type: array
items: integer
minItems: 2
default: [6,9]
description: "This parameter is to test how to define an array in a query string parameter"
responses:
200:
Then you go ahead with the implementation using APIKit. If you are using API Console to test your API should specify the array value on it using JSON notation, like the following:<logger level="INFO" message="#[attributes.queryParams.*ids]" />
001114901

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.