Closed Tomilla closed 3 years ago
try nirvana api pkg
try
nirvana api pkg
Thanks, It WORK!
However, according the source code of cmd/nirvana/api/api.go, the defaultAPIsPath
is "pkg/apis" if user was not set, So is this a version in-compatible issue between v0.3 and v0.4?
However, according the source code of cmd/nirvana/api/api.go, the
defaultAPIsPath
is "pkg/apis" if user was not set, So is this a version in-compatible issue between v0.3 and v0.4?
Oh sorry, it should be pkg
since v0.3, I will update it soon
Is this a BUG REPORT or FEATURE REQUEST?: Bug Report
What happened: After run nirvana init
project_name
, When I am trying to generate API document page with commandnirvana api pkg/apis --serve="127.0.0.1:8081"
,just return two fatal error as follow:What you expected to happen: Start a new server which serves an API document page with the host and the port that specified in command line
How to reproduce it (as minimally and precisely as possible):
nirvana init $(project_name) && cd $(project_name)
go mod tidy
// download dependenciesgo mod tendor
// make vendored copy of dependenciesmake build
// local build./bin/$(project_name)
// API server, listening on :8080nirvana api pkg/apis --serve=":8081"
// try to start api docs service exit with status 1 Anything else we need to know?: