apis.example.com/directory/1.0/users?identifier=123
,apis.example.com
is associated with your organization in API Cloud, the API gateway receives the call,directory
) and version (1.0
), the gateway identifies which API it should be calling,apis.example.com
) is the URL part that all your APIs will share. By default, API Cloud will assign you something like gateway.api.cloud.wso2.com:443/t/orgid/
- but you can easily change it to your own custom URL,directory
). All the REST resources of this API will share it (for example, directory/users
directory/books
, directory/groups
). You specify that value on the first step of API design, right after the user-friendly name:users
, books
, groups
, and so on). Just provide the name on the first (Design) step of API design in the URL Pattern box, select the HTTP methods you want to allow for this resource, and click the Add button:/users/123
) get added in curly brackets right within the URL Pattern box (for example, /users/{identifier}
). Query parameters (for example, /users/?identifier=123
) get added by expanding the API resource that you just added, typing the parameter name in the Parameters box, and clicking the Add Parameter button (see the picture below). You can then change the type of that parameter from query to header or formData.