No announcement yet.

REST Endpoints client library

  • Filter
  • Time
  • Show
Clear All
new posts

  • REST Endpoints client library

    I'm trying to generate client classes to access the REST endpoints exposed in 3.4 however all the swagger related generators cannot parse the swagger.json file properly.

    I've tried Visual Studio's built in AutoREST as well as

    Here's the error from AutoREST
    [Info]AutoRest Core
    [Info]Initializing code generator.
    [Info]Successfully initialized CSharp Code Generator 1.0.5584.22489
    [Info]Initializing modeler.
    [Info]Successfully initialized Swagger Modeler 1.0.5584.22490
    [Info]Parsing swagger json file.
    [Fatal]Error parsing swagger file. Error converting value "ref" to type 'System.Nullable`1[Microsoft.Rest.Modeler.Swagger.Model.SwaggerDataType]'. Path 'type', line 6, position 16.
    Exception: There was an error during code generation when trying to add a client for the REST API
    Generating client code and adding to project failed

  • #2
    Not sure, it works just fine with Swagger UI, and with Jersey / JAX-RS.
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

    - How do I foo?
    - You just bar.