danielgtaylor / danielgtaylor/apisprout

/api/v1 after the host specified in the spec file is ignored

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
719
Forks
70
PR merge metrics
No merged PRs in 30d

Description

if a spec file has this for server.url `http://x.x.x.x:9091/api/v1`, then the server will ignore the path /api/v1, only serve the APIs at the root, is this expected behavior or this is a bug?

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by reproducing the issue with a spec whose server.url is http://x.x.x.x:9091/api/v1, then trace how the mock server reads the server URL and routes requests. Done means the /api/v1 prefix is honored rather than serving the APIs only at the root, with a regression test covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, openapi
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.