Are you aware of the Services Views module?
It allows you to create a services path and you can control the output with Views.
From the question:
Is there any way to create a View for single user profile ?
From the module:
Executing view via views resource
After enabling "views" resource in
your services endpoint you can do GET request to:
http://example.com/<endpoint path>/views/<view name>
This will execute a view and pass results.
- display_id: views display
- args: array of view arguments
- filters: array of view filter values
- offset: views offset
- limit: limit views number of results
- format_output: boolean whether we would like to get themed view or data
This module supports Views arguments (args), which are known as 'Contextual filters' in the Views UI. So if you create a contextual filter for the
uid, and you pass the
args in your request it should work.
http://example.com/rest/views/users?args=5 probably works.
Please note that this method does not alter the output of the existing services endpoints, but creates a new path.