Yes, there is!
${query->get(‘firstName’)} ${query->get(‘lastName’)}
Source: REST API with variable in the URL - #2 by dejan