Reputation: 21280
I am started playing with REST, and trying to understand how I can map following RPC style Web Method to REST style.
public PerformanceResponse GetPerformance(int lineId, int maxNumberOfEntries, bool ascending)
This is the only operation I have related to Performance and it just extracts some information from DB.
Thanks for assistance.
Upvotes: 1
Views: 304
Reputation: 81680
Here is how I would design the API:
/Performance/{lineId}?maxNumberOfEntries={max}&ascending={asc}
Upvotes: 1
Reputation: 7692
Is
http://example.com/Performance/1/2/0
where 1 is lineID, 2 is maxNumber and 0 is ascending
an answer?
(your question is a bit vague - please specify)
Upvotes: 0