Releases: Frumple/mrt-api
Releases · Frumple/mrt-api
Release list
v2.1.1
v2.1.0
Filter by transport mode
You can now filter /companies and /warps by transport mode, using the mode query parameter. This parameter accepts one of the following values: warp_rail, bus, air, sea, or other.
Examples
Get all warp rail companies
https://api.minecartrapidtransit.net/api/v2/companies?mode=warp_rail
Get all air transport companies
https://api.minecartrapidtransit.net/api/v2/companies?mode=air
Get all warps owned by warp rail companies
https://api.minecartrapidtransit.net/api/v2/warps?mode=warp_rail
Get all warps owned by air transport companies
https://api.minecartrapidtransit.net/api/v2/warps?mode=air
Other Changes
- Added FliHigh under the "air" transport mode.
- Added BluTransit under the "other" transport mode, since warps beginning with "BLU" may be BluRail or BluAir.
v2.0.0
New v2 Endpoints
Due to a breaking change, new v2 endpoints are now available at https://api.minecartrapidtransit.net/api/v2 and should be used going forward. The v2 endpoints are identical to the v1 endpoints, except that the /warps endpoint response now includes pagination information, in addition to the resulting warps from the query. Example:
{
"pagination": {
"limit": 2000,
"offset": 0,
"hits": 2000,
"total_hits": 31541
},
"result": [
{
"id": 1,
"name": "SC2",
"playerUUID": "5389532c-8b60-4494-b6dc-a519df31b8ee",
"worldUUID": "253ced62-9637-4f7b-a32d-4e3e8e767bd1",
"x": -3663.431565073147,
"y": 71,
"z": -3601.564219649892,
"pitch": 16,
"yaw": -1,
"creationDate": "2015-05-29T23:44:27Z",
"type": 1,
"visits": 56,
"welcomeMessage": "Welcome to '%warp%', %player%."
},
...other warps...
]
}
The v1 endpoints will remain available, but are deprecated. They will be removed in a future version, so please migrate any existing applications to the v2 endpoints as soon as you're able.
Other Changes (applies to both v1 and v2 endpoints)
- Fixed search patterns for warps belonging to IntraRail, Mojang Commuter Railway, BluRail, and Network South Central. Queries for these companies should no longer return empty results.
- Added "legacy" company categories for IntraRail and Mojang Commuter Railway. Use "company=IR-OLD" or "company=MCR-OLD" in queries to search for old IR and MCR warps that use underscores instead of dashes.
- Added log message when the API starts up.