Splunk interview question

Design a rest api, the methods, what parameters it'd accept and what the response would look like. some basic react code was given and had to implement pagination