Comments (7)
Hey @kosmotaur that actually sounds like a really useful feature 👍
How about including it as an extra option/argument, in addition to the -f
option.
from drakov.
Just been discussing this and we are thinking carefully about how this effects our policy of respect the spec files
.
I'm starting to think this would bring some confusing behaviour to Drakov and would endanger the simplicity of just obeying what is in the specs.
There is currently nothing stopping you from breaking up your spec files into separate directories as the --file
or -f
argument takes a glob expression that can load files nested inside a directory/folder structure.
ping @SiCurious
from drakov.
The key reason we cannot use the -f
option is that we are not running the Drakov server locally, it is hosted on a company-wide accessible server.
We have a CI pipeline around the blueprints themselves, so that whenever we agree on a change to the APIs, they get deployed automatically. All of them are accessible to the whole company. We cannot at a given point in time just use a glob to now run v1
or anything along these lines. We need all blueprints accessible at all times, so that different clients can be developed and automatically tested against them.
As to the "respect the spec files" policy, that's why this would be an option, so by default you keep your policy, but also allow for flexibility in a larger, industry scale use case.
@SiCurious and @kosmotaur
from drakov.
Are the actual endpoints the same in each version?
Would it possible to run multiple servers?
from drakov.
We could work on a drakov-cluster
module, which could spin up multiple instances of Drakov, do the pre-routing and proxy the requests into the respective instance.
Quite a bit of overhead though, so we'll need to consider this vs. forking Drakov if it's a no-go for you.
from drakov.
The drakov-cluster
idea is intriguing.
A recent PR that I did added support for using a config file, this will make it easier to load multiple configurations if needed.
This idea appeals to me as it would allow us to keep the basic functionality of drakov
the same.
If that is the solution for you guys, I'm happy to work on that for the next release.
from drakov.
@SiCurious @kosmotaur see #72
I'm happy to discuss this in more detail in the new issue that I have created.
from drakov.
Related Issues (20)
- Express server callback is not called after switching to 'drafter' HOT 1
- Discover option does not work HOT 1
- Incompatibility with body-parser HOT 3
- Remove Wiki tab HOT 1
- Can not match body request when Content-Type is x-www-form-urlencoded HOT 2
- URI conflict HOT 2
- Could not load the Visual C++ component "VCBuild.exe". To fix this HOT 2
- CLI option `--ignoreHeader` causes error HOT 1
- Missing URI parameters on mock advanced API Blueprint resources HOT 4
- stealthmode does not disable all output HOT 1
- Error on ignoreHeader command line argument HOT 3
- Docker HOT 1
- Send parameter value in body
- Dump all request data
- Share the project with community HOT 12
- ignoreHeader error, TypeError: ignoreHeaders.map is not a function HOT 1
- Add package-lock.json to the repo
- Use release-it for release/distribution
- public option not working HOT 5
- "Endpoint not found"
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 drakov.