Skip to content

Commit

Permalink
Merge pull request #12 from Vonter/update-docs
Browse files Browse the repository at this point in the history
Update API documentation, OAS to 3.1 and Swagger to 5.11
  • Loading branch information
Vonter authored Jan 15, 2024
2 parents 92026b2 + 1eea751 commit 9f7c9e2
Show file tree
Hide file tree
Showing 36 changed files with 32,352 additions and 4,536 deletions.
53 changes: 7 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,19 @@
# open-bmtc

Data and analysis around public transit in Bengaluru.
Unoffical Namma BMTC API documentation

## API
## APIs

Nimmbus API documentation, as inferred by reverse-engineering the application, is available under the [/api folder](/api).
The API documentation is available as an [OpenAPI 3.1 specification](/api/bmtc.yaml) and is viewable with a [Swagger UI](https://nimmbus.netlify.app).

The API documentation is available as an [OpenAPI 3.0 specification](/api/nimmbus.yaml), with a [Swagger UI](https://nimmbus.netlify.app). The [README.md](/api/README.md) is generated from the OpenAPI specification using [widdershins](https://github.com/Mermade/widdershins) with the following options:
### Missing APIs

```sh
widdershins --search false --omitHeader -u .widdershins/templates --code --summary nimmbus.yaml -o README.md
```

The list of API endpoints (includes undocumented APIs) accessed by the Nimmbus app is available in [/api/urls.txt](/api/urls.txt)

### API Changes

#### February

* New
- `https://bmtcmobileapistaging.amnex.com/WebAPI/GetTUMMOCSecretKey`

* Removed
- `https://bmtcmobileapistaging.amnex.com/WebAPI/SearchRouteandDestination`

* Changed
- `https://bmtcmobileapistaging.amnex.com/WebAPI/GetMobileFareData` → `https://bmtcmobileapistaging.amnex.com/WebAPI/GetMobileFareData_v1`
APIs that are not yet documented, or missing in the OpenAPI specification, are listed in [missing.md](/api/missing.md)

## Data

Data scraped from the Nimmbus API is available under the [/data folder](/data)

## Visualizations

TODO
Data scraped from the API is available on the [bmtc-gtfs](https://github.com/Vonter/bmtc-gtfs) repository in both raw JSON form and as GTFS.

## To-Do

- [ ] Nimmbus API Documentation
- [X] Routes
- [X] Timetables
- [X] Stops
- [ ] Stops in Route
- [X] Live Tracking
- [ ] Other
- [X] Swagger UI
- [ ] Scrape data
- [X] Route List
- [X] Route Polyline
- [ ] Route Stoplist
- [ ] Route Timetable
- [ ] Stop List
- [ ] Consolidate, organize and clean scraped data
- [ ] Visualizations and analysis like [geohacker's](https://github.com/geohacker/bmtc)
- [ ] Convert to GTFS
- [ ] Include old data from other sources (like [geohacker's](https://github.com/geohacker/bmtc)) under an `archives/` folder
- [ ] Convert old data to GTFS
- [ ] Document missing APIs
64 changes: 0 additions & 64 deletions api/.widdershins/templates/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions api/.widdershins/templates/authentication.def

This file was deleted.

3 changes: 0 additions & 3 deletions api/.widdershins/templates/authentication_none.def

This file was deleted.

38 changes: 0 additions & 38 deletions api/.widdershins/templates/callbacks.def

This file was deleted.

133 changes: 0 additions & 133 deletions api/.widdershins/templates/code_csharp.dot

This file was deleted.

23 changes: 0 additions & 23 deletions api/.widdershins/templates/code_go.dot

This file was deleted.

7 changes: 0 additions & 7 deletions api/.widdershins/templates/code_http.dot

This file was deleted.

13 changes: 0 additions & 13 deletions api/.widdershins/templates/code_java.dot

This file was deleted.

16 changes: 0 additions & 16 deletions api/.widdershins/templates/code_javascript.dot

This file was deleted.

14 changes: 0 additions & 14 deletions api/.widdershins/templates/code_jquery.dot

This file was deleted.

Loading

0 comments on commit 9f7c9e2

Please sign in to comment.