GET masterservicegroups
Returns a list of service groups based on the provided information. A service group is a grouping of service based on the day type (weekday, Saturday or Sunday/holiday).
Resource URL
http://api.rgrta.com/masterservicegroups
Parameters
servicegroupid
optional
|
Specifies the Service Group ID, which is determined through this interface. To find the Service Group ID you wish to reference, you can pull the list of Master Service Groups and view the data.
Example Value: 12345 |
servicegroupabbr
optional
|
Abbreviated service group identifier. Can be used to cross-reference the Service methods.
Example Value: 12345 |
weektemplate
optional
|
A 7-digit binary template that shows the pattern of days the service applies to.
Example Value: 0111110, 0000001, or 1000000 |
servicegroupname
optional
|
The name used to reference the service group.
Example Value: WEEKDAY, SATURDAY or SUNDAY/HOLIDAY |
Response Object
ServiceGroupInfo
Example Request
GET - http://api.rgrta.com/masterservicegroups
[
{
"ServiceGroupId":1,
"ServiceGroupAbbr":"0",
"WeekTemplate":"0111110",
"ServiceGroupName":"WEEKDAY"
},
{
"ServiceGroupId":2,
"ServiceGroupAbbr":"4",
"WeekTemplate":"0000001",
"ServiceGroupName":"SATURDAY "
},
{
"ServiceGroupId":3,
"ServiceGroupAbbr":"5",
"WeekTemplate":"1000000",
"ServiceGroupName":"SUNDAY/HOLIDAY"
}
]