aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-01-05 22:45:16 +0100
committerMartin Polden <mpolden@mpolden.no>2021-01-05 22:45:16 +0100
commit173b5b751eb0a7794177b6519ec49d5feaf52e3b (patch)
tree63fb274a8cbe8185fda0eeede9f8af1a81b720ef
parent986756fd9277f56bef1893cc2e498b598b22e24c (diff)
Update API URL
-rw-r--r--README.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index cef415b..a15b05c 100644
--- a/README.md
+++ b/README.md
@@ -53,11 +53,11 @@ Lists all available API routes.
Example:
```
-$ curl https://atbapi.tar.io | jq .
+$ curl https://mpolden.no/atb/ | jq .
{
"urls": [
- "https://atbapi.tar.io/api/v1/busstops",
- "https://atbapi.tar.io/api/v1/departures"
+ "https://mpolden.no/atb/v1/busstops",
+ "https://mpolden.no/atb/v1/departures"
]
}
```
@@ -70,7 +70,7 @@ Lists all known bus stops.
Example:
```
-$ curl https://atbapi.tar.io/api/v1/busstops | jq .
+$ curl https://mpolden.no/atb/v1/busstops | jq .
{
"stops": [
{
@@ -94,7 +94,7 @@ Information about the given bus stop, identified by a node ID.
Example:
```
-$ curl https://atbapi.tar.io/api/v1/busstops/16011376 | jq .
+$ curl https://mpolden.no/atb/v1/busstops/16011376 | jq .
{
"stopId": 100633,
"nodeId": 16011376,
@@ -109,7 +109,7 @@ $ curl https://atbapi.tar.io/api/v1/busstops/16011376 | jq .
As [GeoJSON](http://geojson.org/):
```
-$ curl https://atbapi.tar.io/api/v1/busstops/16011376?geojson | jq .
+$ curl https://mpolden.no/atb/v1/busstops/16011376?geojson | jq .
{
"type": "Feature",
"geometry": {
@@ -141,10 +141,10 @@ Lists departure URLs for all known bus stops.
Example:
```
-$ curl -s https://atbapi.tar.io/api/v1/departures | jq .
+$ curl -s https://mpolden.no/atb/v1/departures | jq .
{
"urls": [
- "https://atbapi.tar.io/api/v1/departures/15057011",
+ "https://mpolden.no/atb/v1/departures/15057011",
...
]
}
@@ -157,7 +157,7 @@ Lists all departures for the given bus stop, identified by a node ID.
Example:
```
-$ curl https://atbapi.tar.io/api/v1/departures/16011376 | jq .
+$ curl https://mpolden.no/atb/v1/departures/16011376 | jq .
{
"isGoingTowardsCentrum": true,
"departures": [