Developing JSON API for a Carpool Engine
Posted
by
Siddharth
on Programmers
See other posts from Programmers
or by Siddharth
Published on 2012-11-01T14:02:25Z
Indexed on
2012/11/01
17:16 UTC
Read the original article
Hit count: 427
interfaces
|api
I am developing a new set of API methods for carpooling/cab booking, so if a developer needs to develop an app or webportal for carpooling, he can call my JSON API. Basically making it easy for developers.
My API current has:
AddVehicle
AddJourney
SearchJourney
SubscribeToThisJourney(journey)
SubscriberList(journey)
to get list of people who have subscribed for this journeyAcceptSubscription(subscriber)
AcceptedSubcriberList
SubscriberList
to get list of providers I have subscribed to
I need help with replacing subscriber with something else. It's difficult to remember, and confusing when you see 3 methods that mean very different things: SubscriberList
, SubscribedToThisJourneyList
and AcceptedSubscriberList
. Confusing to remember.
- One is a list of who I have subscribed to
- Who has subscribed to me
- Whose subscription I have accepted
How can I name these methods to make them easier to understand and remember?
© Programmers or respective owner