klassen-software-solutions / crest

Command line REST client
MIT License
0 stars 0 forks source link

The system will allow for a common path prefix #10

Open stevenklassen8376 opened 3 years ago

stevenklassen8376 commented 3 years ago

I expect this will be most useful in a local configuration file, but we won't enforce that. (We will allow it in the global file as well.)

The idea is that you can set a value, say "PREFIX=http://my-test-machine-instance:8888/api/v1" which will then be prefixed to any url you provide. E.g. instead of "crest http://my-test-machine-instance:8888/api/v1/widget/123", if the PREFIX was set you would only need "crest /widget/123". I think this will be a big time and typing saver given that the expected use case is to type "crest" many times in a given project with only the latter part of the URL changing.