web stats
REST Endpoints client library - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2016, 10:23 AM
pcristini pcristini is offline
What's HL7?
 
Join Date: Jun 2016
Posts: 5
pcristini is on a distinguished road
Default 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 http://editor.swagger.io/

Here's the error from AutoREST
Code:
[Info]AutoRest Core 0.9.7.0
[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
Reply With Quote
  #2  
Old 06-14-2016, 11:47 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road
Default

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.
Reply With Quote
Reply

Tags
rest

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation