Code Monkey home page Code Monkey logo

zzarchive-apiaryprovider's People

Contributors

7sharp9 avatar carsten-j avatar ctaggart avatar dsyme avatar enricosada avatar forki avatar fsprojectsgit avatar jamesholwell avatar okayx6 avatar remkoboschker avatar sergey-tihon avatar tpetricek avatar vasily-kirichenko avatar yukitos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zzarchive-apiaryprovider's Issues

It doesn't work well with skypickerpublicapi

I wanted to use this provider for calling skypickerpublicapi.
I was able to create provider:
let search = new ApiaryProvider<"skypickerpublicapi">("https://api.skypicker.com/")

But unfortunately it is not possible to call some api by it, the requests were always wrong.
Other big issue is that it doesn't support POST requests.

not working with Volusion Storefront API

I'm trying this out with our Volusion Storefront API, but I wasn't able to get this working.

let store = new ApiaryProvider<"volusion">("http://www.samplestore.io")

After debugged this for a while this evening, I found that in ApiaryGenerator.fs the body.InnerText was returning "", so I changed the code to be:

  let generateMembersForJsonResult (ctx:ApiaryGenerationContext) name spec =

    let samples = 
      [ for example in spec?responses do
          if example?status.AsInteger() = 200 then 
            match example.TryGetProperty "body" with
            | Some body ->
                let source = body.InnerText()
                if String.IsNullOrEmpty source then ()
                else yield JsonValue.ParseSample source
            | None -> () ]

This got me past that error, but nothing was quite right. Just looking to be pointed in the right direction.

Build fails on travis with error about not finding nunit-console

Starting Target: RunTest_ApiaryProvider.DesignTime.Tests 
/Users/travis/build/fsprojects/ApiaryProvider/tools/Nunit/nunit-console.exe "-nologo" "-noshadow" "-labels" "/Users/travis/build/fsprojects/ApiaryProvider/tests/ApiaryProvider.DesignTime.Tests/bin/Release/ApiaryProvider.DesignTime.Tests.dll" "-xml:TestResults.xml" "-framework:4.0" "-domain:Multiple" 
mono  /Users/travis/build/fsprojects/ApiaryProvider/tools/Nunit/nunit-console.exe "-nologo" "-noshadow" "-labels" "/Users/travis/build/fsprojects/ApiaryProvider/tests/ApiaryProvider.DesignTime.Tests/bin/Release/ApiaryProvider.DesignTime.Tests.dll" "-xml:TestResults.xml" "-framework:4.0" "-domain:Multiple" 
Cannot open assembly '/Users/travis/build/fsprojects/ApiaryProvider/tools/Nunit/nunit-console.exe': No such file or directory.
Running build failed.

Support RAML

RAML (http://raml.org/) is a YAML-based mark up language for describing a REST API, with it we should be able to create a REST API against any RESTful service using its RAML spec.

Don't bundle FSharp.Data.DesignTime.dll

Use an assemblyresolver in the ApiaryProvider.fs file before the constructor to resolve into the nuget packages folder

As it is, it will probably cause problems if there's a version mismatch between what was bundled and the version of FSharp.Data that is being used from NuGet

CI broken

((50, 13), (50, 41)) The type provider 'ApiaryProvider.ProviderImplementation.ApiaryProvider' reported an error: The remote server returned an error: (404) Not Found.

Seems it can't find the sample blueprint.

If you get CI working so I have a baseline to work against, we'll contribute a Hawk authentication mechanism.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.