Skip to content

Commit

Permalink
Convert report-problem-with-trip to new rest_api layout
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbrethorst committed Mar 20, 2024
1 parent 189867f commit 1c5604b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"code":200,"currentTime":1710960426279,"data":{},"text":"OK","version":2}
30 changes: 8 additions & 22 deletions src/api/where/methods/report-problem-with-trip.md
Original file line number Diff line number Diff line change
@@ -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

~~~~
<response>
<version>2</version>
<code>200</code>
<currentTime>1318879898047</currentTime>
<text>OK</text>
<data/>
</response>
~~~~

## Request Parameters

* tripId - the trip id, encoded directly in the URL:
Expand Down

0 comments on commit 1c5604b

Please sign in to comment.