Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Grant Goodale
    @ggoodale
    Does drakov support blueprints that contain Attributes (i.e. https://github.com/apiaryio/api-blueprint/blob/master/examples/10.%20Data%20Structures.md)?
    When I run drakov against the Coupon example in that document and then request http://localhost:3000/coupons/250FF, I get a 200 OK response, but no body.
    Yakov Khalinsky
    @yakovkhalinsky
    Drakov currently doesn't support that, please feel free to add an issue for this feature :+1:
    hellboy81
    @hellboy81
    Hi. Is drakov suitable as tool during DDAD (Documentation driven development) and ADD (API Driven development) ?
    Yakov Khalinsky
    @yakovkhalinsky
    hey @hellboy81 we use it to run protractor tests, it’s really up to you how you use it and how your app runs
    hellboy81
    @hellboy81
    Is there some advantages over https://github.com/localmed/api-mock ?
    Yakov Khalinsky
    @yakovkhalinsky
    hey @hellboy81 I can’t really comment as I haven’t had anything to do with that mock server :) I would just suggest you try out Drakov and see how you go :+1:
    hellboy81
    @hellboy81
    As I mentioned drakov is better ;-)
    Yakov Khalinsky
    @yakovkhalinsky
    ah cool thanks @hellboy81 :thumbsup:
    Tristan Bailey
    @tristanbailey
    ive loaded up drakov, and GET works fine but POST is not working, do i need to change permissions or something?
    Duparc Loic
    @lduparc
    Hi everybody, I have a question about static files. I don't understand the use of them. If I generate html files with aglio for example, can I render this html page with drakov and how ? Thanks in advance
    Yakov Khalinsky
    @yakovkhalinsky
    hi @tristanbailey there are some examples here: https://github.com/Aconex/drakov/tree/master/test/example/md let me know if you are still having trouble
    @lduparc the -s /path/one,/path/two is the simplest use of the static server in drakov, or if you want say /path/one to mount to http://localhost:3000/foo then you would do something like -s /path/one=/foo
    Duparc Loic
    @lduparc
    Thank for your answer.
    Tristan Bailey
    @tristanbailey
    @yakovkhalinsky thanks
    Jeffrey Hann
    @obihann
    Does drakov support LINK and UNLINK requests? It seems they show up as a route however whenever I request them I immediately get an error saying the socket was reset by remote peer
    An example of the markdown I am providing is
    ### Link Network [LINK]
    
    + Response 200 (application/json)
    
        + Attributes (User Response)
    Also drakov doesn't display any output when I make the request
    Yakov Khalinsky
    @yakovkhalinsky
    @obihann the output is just setting up the route mapping, to be honest I’ve never used those HTTP methods with express :) I’ll have a play and try them out
    Jeffrey Hann
    @obihann
    @yakovkhalinsky thanks. If you don't mind pointing me in the right direction I could also dig around this weekend and if I figure something out send you a PR.
    Bogdan Livadariu
    @BogdanLivadariu
    hello guys
    anyone of you managed to work his/her way through using 'Prefer:status=xxx'
    Yakov Khalinsky
    @yakovkhalinsky
    hey @BogdanLivadariu I’ll have a look, hopefully we haven’t broken this functionality at some point :smile:
    Yakov Khalinsky
    @yakovkhalinsky
    @BogdanLivadariu have raised an issue for this, we seem to have eradicated this functionality Aconex/drakov#118
    Bogdan Livadariu
    @BogdanLivadariu
    Thanks @yakovkhalinsky
    Owen Klaiss
    @oklaiss-gpsw
    Hey all, I know this room isn't too active but I'm wondering if anyone has experience with providing optional parameters in a Request Header section? For example I'm trying to provide an optional Content-Type in the request header for a GET request but am having issues with syntax if this is possible?
    What I want to accomplish would look something like "Content-Type: text/plain (optional)"
    Yakov Khalinsky
    @yakovkhalinsky
    hey @oklaiss-gpsw drakov doesn’t really support optional headers at the moment, my only suggestion is to have multiple blueprint files
    Owen Klaiss
    @oklaiss-gpsw
    @yakovkhalinsky Yeah based on my fiddling around it seems like the only way is to duplicate the request and response to have multiple request header configurations. Thanks
    Owen Klaiss
    @oklaiss-gpsw
    @yakovkhalinsky One other question, is there a way to run the drakov -f .... command in the background? drakov -f "apiary.apib" & doesn't run it in the background as expected.
    Lance Lafontaine
    @lancelafontaine
    Hey guys, just posted a question on SO here: http://stackoverflow.com/questions/38274186/apib-always-responding-to-a-post-request-regardless-of-the-request-payload. Just realized that it is more of a Drakov question rather than an apib question though
    The gist of it is: How can I always return the same response to a POST request at an endpoint, given that I don't know what the format or content of the request payload will be? Is that something that is supported?
    Yakov Khalinsky
    @yakovkhalinsky
    Hey @lancelafontaine I’ve looked at your stackoverflow question and tried to answer it
    from memory I don’t think Drakov parses the Attribute block that for matching requests
    have you tried using “”around the keys in the request JSON on the APIB and trying it again?
    Lance Lafontaine
    @lancelafontaine
    Hi @yakovkhalinsky , sorry for the late reply. What you suggested (Requests section + "" for attributes) worked on the first try. Many thanks!
    Liam Dyer
    @dyerw

    Hi, I just got started with Drakov and it looks like it initializes properly as I see:

    [LOG] Setup Route: GET /hss/search Search Hotels

    but then when i fire a request at the endpoint I get:

    Cannot GET /hss/search

    and a 404

    any idea what's up?

    daben1990
    @fyddaben
    Hi, How to slove different file has same interface? like A file is aaa.com/touchme , B file is bbb.com/touchme . and i want only use one port to run Drakov?
    Luke Rodham
    @lukerodham
    Hi, reading over the logs here it seems there is no solution to the 404 issue people are getting, or have i just missed something?
    Michael Gauthier
    @mgauthier
    Hey everyone, when I run drakov from the command line with discover option, I get no available endpoints when I go to /drakov. Are there known common causes for this?
    Michael Gauthier
    @mgauthier
    Note that my .apib files are using includes, would this cause an issue?
    Denis Tokarev
    @devlato
    Hey guys
    Is there any way to make drakov respond different JSON for the same URL and different request params?
    I found some open issues about it in the api-blueprint repo
    They are open for couple of years already
    But I didn't find a working solution
    This message was deleted
    Rafael
    @rafamp85
    Hi to all, I've writen my definition with OpenAPI v3, how can I read it with drakov. Thanks!!!
    Kwadwo Opoku-Debrah
    @kojodoesdesign
    Is there anyway to change the host name for drakov when running the server? Like having "0.0.0.0:5000" instead of "localhost:5000"