• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / fuel-prices-api / 22040501390
0%
main: 50%

Build:
Build:
LAST BUILD BRANCH: chore/update-go-deps
DEFAULT BRANCH: main
Ran 15 Feb 2026 06:06PM UTC
Jobs 1
Files 7
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Feb 2026 05:48PM UTC coverage: 0.0%. Remained the same
22040501390

Pull #3

github

rm-hull
feat: add REST API server and search endpoint

Introduces a RESTful API using the `gin` framework and refactors the
application entry point to use `cobra` CLI commands.

*   Implemented `GET /v1/fuel-prices/search` with **bounding box**
    validation.
*   Added `api-server` subcommand to manage service startup.
*   Integrated middleware for `prometheus` metrics, `pprof` profiling,
    `CORS`, and automated health checks.
*   Enabled `HEALTHCHECK` in the `Dockerfile` for container monitoring.
*   Updated data models to include metadata like `attribution` and
    `last_updated` timestamps.

```mermaid
sequenceDiagram
    participant C as Client
    participant A as API (Gin)
    participant R as Repository
    participant F as FuelClient

    C->>A: GET /search?bbox=min_lon,min_lat,max_lon,max_lat
    A->>A: Parse & validate BBox
    alt Invalid BBox
        A-->>C: 400 Bad Request
    else Valid BBox
        A->>R: Search(bbox)
        R-->>A: List of results
        A->>F: LastUpdated()
        F-->>A: Timestamp
        A-->>C: 200 OK (Results + Attribution + UpdatedTime)
    end
```
Pull Request #3: feat: add REST API server and search endpoint

0 of 127 new or added lines in 4 files covered. (0.0%)

0 of 574 relevant lines covered (0.0%)

0.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
66
0.0
cmd/api_server.go
35
0.0
internal/routes/search.go
20
0.0
0.0% main.go
6
0.0
0.0% internal/client_fetch.go
Jobs
ID Job ID Ran Files Coverage
1 22040501390.1 15 Feb 2026 06:06PM UTC 7
0.0
GitHub Action Run
Source Files on build 22040501390
  • Tree
  • List 7
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3
  • PR Base - main (#22039057692)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc