Comments (3)
Hey,
@danielgtaylor this is still not working when configuring an API via ~/.restish/apis.json
example:
{
"myapi": {
"base": "http://domain.com:8080/api/v1",
"spec_files": ["/Users/home/openapi.yml"]
}
}
any call via restish is sent to http://domain.com:8080
.
removing the base causes nil pointer exception:
...
github.com/danielgtaylor/restish/cli.Run.func1()
/home/runner/work/restish/restish/cli/cli.go:461 +0x94
panic(0x1869040, 0xc00040bd70)
/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/panic.go:969 +0x166
github.com/danielgtaylor/restish/cli.MakeRequestAndFormat(0xc00009a900)
/home/runner/work/restish/restish/cli/request.go:344 +0x100
github.com/danielgtaylor/restish/cli.Operation.command.func1(0xc0002042c0, 0xc000427740, 0x0, 0x1)
Thanks.
from restish.
This is an interesting use-case I hadn't considered.
from restish.
Merged in 5a6424d and released in 0.4.3.
from restish.
Related Issues (20)
- Request: add support for deflate encoding HOT 2
- Finish Gron Mon HOT 1
- Accèssing response body and headers not possible at same time HOT 1
- Add a help mode which excludes global flags
- Refreshing API definition interacts strangely with CLI flags and CachedTransport HOT 1
- gron output fails on keys containing "." HOT 2
- Question: Is it possible to send multipart/form-data request? HOT 2
- runtime error: invalid memory address with specific OpenAPI specs HOT 1
- separating commands by tags HOT 1
- Question: is it possible to generate request body from open api examples
- Header case modification makes restish unusable for some APIs with case senstive headers
- Downloading Restish on Windows? HOT 1
- http-basic password prompt is shown clear text
- Create API Specific Commands from PostgREST
- Support Flags for positional arguments and request bodies HOT 3
- Getting `Caught error: runtime error: invalid memory address or nil pointer dereference` trying to import basic OpenAPI spec HOT 1
- (Feature Request) - Allow restish to be used in non-interactive mode HOT 2
- Feature request: Per project configuration
- Allow base path elements to be ignored
- Stack Overflow error when renderSchemaInternal() is called
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restish.