Closed oleics closed 8 years ago
@oleics, about your request --use-default-server
my answer is 'No', because we don't need extra flags. It's extra code and work. Please, check 0.4.1-beta.0 version. The bug was fixed.
If all is okey, then can we close the issue?
@galk-in My fault, if I was not concrete enough. I'm very aware that a flag means extra code/work/lines to maintain. This (and running calls against production-servers by-default) would be enough reasons for me to completely drop the feature of using baseUri as the default server ;) But it's not up to me to decide here :)
And sure, the bug is fixed, so close this issue. EDIT: Thank you all, especially for the work on this project.
@oleics, why is this an issue at all? It is designed to run against the RAML-designated server by default. If you want to run against a staging server, use the --server
cmd-line argument. If you're doing new development, either add the designated API endpoint to your /etc/hosts
file and impersonate the production server, or change the baseUri
property in your RAML file to access your development server.
@plroebuck
why is this an issue at all?
The issue/bug is fixed, I don't know what you mean.
It is designed to run against the RAML-designated server by default.
This is still a feature.
If you're doing new development, either add the designated API endpoint to your /etc/hosts file and impersonate the production server, or change the `baseUri property in your RAML file to access your development server.
Why would anyone do this when you can use --server
?
Anyway, the original issue is fixed :)
I'm using abao via
npm
. NPM-Version is: abao@0.4.0Related issue: #104
My thought on this: Make
--server
required and implement--use-default-server
flag later on. My reason for putting this behind a flag is, that it makes hammering production-servers with requests harder. And maybe don't use the default server at all and always require the server to be specified.jm2c and cheers!