From 1c5604bee7952da7b94844c618c2ecba74a42c81 Mon Sep 17 00:00:00 2001 From: Aaron Brethorst Date: Wed, 20 Mar 2024 11:48:05 -0700 Subject: [PATCH] Convert report-problem-with-trip to new rest_api layout --- .../report-problem-with-trip-1_79430293.json | 1 + .../where/methods/report-problem-with-trip.md | 30 +++++-------------- 2 files changed, 9 insertions(+), 22 deletions(-) create mode 100644 src/api/example_responses/report-problem-with-trip-1_79430293.json diff --git a/src/api/example_responses/report-problem-with-trip-1_79430293.json b/src/api/example_responses/report-problem-with-trip-1_79430293.json new file mode 100644 index 0000000..2712932 --- /dev/null +++ b/src/api/example_responses/report-problem-with-trip-1_79430293.json @@ -0,0 +1 @@ +{"code":200,"currentTime":1710960426279,"data":{},"text":"OK","version":2} \ No newline at end of file diff --git a/src/api/where/methods/report-problem-with-trip.md b/src/api/where/methods/report-problem-with-trip.md index 60dd2e9..25e572d 100644 --- a/src/api/where/methods/report-problem-with-trip.md +++ b/src/api/where/methods/report-problem-with-trip.md @@ -1,29 +1,15 @@ --- -layout: page +layout: rest_api title: report-problem-with-trip Method +description: | + Submit a user-generated problem report for a particular trip. The reporting mechanism provides lots of fields that can + be specified to give more context about the details of the problem (which trip, stop, vehicle, etc was involved), + making it easier for a developer or transit agency staff to diagnose the problem. These reports feed into the + problem reporting admin interface. +sample_request_url: https://api.pugetsound.onebusaway.org/api/where/report-problem-with-trip/1_79430293.json?key=TEST&serviceDate=1291536000000&vehicleId=1_3521&stopId=1_75403&code=vehicle_never_came +example_response_file: report-problem-with-trip-1_79430293.json --- -Submit a user-generated problem report for a particular trip. The reporting mechanism provides lots of fields that can -be specified to give more context about the details of the problem (which trip, stop, vehicle, etc was involved), -making it easier for a developer or transit agency staff to diagnose the problem. These reports feed into the -problem reporting admin interface. - -## Sample Request - -[http://api.pugetsound.onebusaway.org/api/where/report-problem-with-trip/1_79430293.json?key=TEST&serviceDate=1291536000000&vehicleId=1_3521&stopId=1_75403&code=vehicle_never_came](http://api.pugetsound.onebusaway.org/api/where/report-problem-with-trip/1_79430293.json?key=TEST&serviceDate=1291536000000&vehicleId=1_3521&stopId=1_75403&code=vehicle_never_came) - -## Sample Response - -~~~~ - - 2 - 200 - 1318879898047 - OK - - -~~~~ - ## Request Parameters * tripId - the trip id, encoded directly in the URL: