Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Steven Hargrove
    @hulkish
    @blakeembrey in my client-side UI code, or to simplify… lets just say on my local dev environment I have just a index.html:
    […]
    <body>
    
      <script type=“text/javascript>
        jQuery.ajax( {
            url: ‘http://localhost/api/helloWorld',
            type: ‘GET',
            success: function( response ) {
                // response
            }
        } );
      </script>
    
    </body>
    </html>
    @blakeembrey and my raml…
    #%RAML 0.8
    title: my api
    version: v1
    baseUri: http://api.samplehost.com
    /helloWorld:
      get:
        responses:
          200:
            body:
              application/json:
                example: |
                  {
                    "message" : "Hello World"
                  }
    bear with me… perhaps something syntactically incorrect in these … but just for the sake of argument lets assume they’re correct
    Blake Embrey
    @blakeembrey
    ok, and, what next? what's testing look like for you here?
    Steven Hargrove
    @hulkish
    but, lets say im running a local web server and testing my index.html page… etc. In addition to this - while I make changes to my api.raml - I want to be able to test them as a local server
    Blake Embrey
    @blakeembrey
    just making http requests or writing unit tests or something bigger?
    Steven Hargrove
    @hulkish
    both
    yes yes and yes lol
    Blake Embrey
    @blakeembrey
    sorry, it's just difficult to figure out what i'm answering rn :)
    so do you need these synchronised somehow?
    raml is just the description language between them
    do you want to mock the backend or something to test?
    Steven Hargrove
    @hulkish
    basically, I need a local server - something like this: https://github.com/isaacloud/local-api (although, this doesnt quite satisfy my needs)
    yes i need to mock the backend
    Blake Embrey
    @blakeembrey
    what more did you need? i hadn't seen that before, but it looks quite good
    Steven Hargrove
    @hulkish
    well, I’m new to raml and after just a bit of research that was the best option I’ve come across
    I guess I’m just hoping perhaps somebody knew of a solution thats even better, or any advice at all for that matter
    Blake Embrey
    @blakeembrey
    seems quite good, i'd built https://github.com/mulesoft-labs/osprey-mock-service in the past but it's not quite as complete on the mocking front
    Steven Hargrove
    @hulkish
    ah
    Steven Hargrove
    @hulkish
    @blakeembrey one more question… I was hoping you could shed some light on this: raml-org/raml-js-parser-2#96
    Blake Embrey
    @blakeembrey
    i can't answer that, sorry, you'll need to get an update from the team working on it
    Steven Hargrove
    @hulkish
    ok ty
    Christian Vogel
    @sichvoge
    @hulkish from your image i'd guess you got your answer from me already :)
    Patrick Housley
    @patrickhousley
    Hey everyone. I was wondering if there was anyone that could help with issue raml-org/raml-js-parser#182
    amritsinghbains
    @amritsinghbains

    schemas:

    • RetrieveIndividualListRs: !include jsd/RetrieveIndividualListXXRs.1.schema.json

    Can I know how to get the value "!include jsd/RetrieveIndividualListXXRs.1.schema.json" from raml file reader?

    I dont want the value of the file but the file name "....schemas.json"