Skip to content

Commit

Permalink
Convert report-problem-with-stop method 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 ac77207 commit 189867f
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":1710960205535,"data":{},"text":"OK","version":2}
30 changes: 8 additions & 22 deletions src/api/where/methods/report-problem-with-stop.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
---
layout: page
layout: rest_api
title: report-problem-with-stop Method
description: |
Submit a user-generated problem report for a particular stop. 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-stop/1_75403.json?key=TEST&code=stop_name_wrong
example_response_file: report-problem-with-stop-1_75403.json
---

Submit a user-generated problem report for a particular stop. 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-stop/1_75403.json?key=TEST&code=stop_name_wrong](http://api.pugetsound.onebusaway.org/api/where/report-problem-with-stop/1_75403.json?key=TEST&code=stop_name_wrong)

## Sample Response

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

## Request Parameters

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

0 comments on commit 189867f

Please sign in to comment.