Giter VIP home page Giter VIP logo

Comments (3)

asaf avatar asaf commented on May 12, 2024 2

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.

danielgtaylor avatar danielgtaylor commented on May 12, 2024

This is an interesting use-case I hadn't considered.

from restish.

danielgtaylor avatar danielgtaylor commented on May 12, 2024

Merged in 5a6424d and released in 0.4.3.

from restish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.