Skip to content

v2.0.0

Choose a tag to compare

@Frumple Frumple released this 20 Aug 00:08
· 3 commits to main since this release

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.