web stats
Access Mirth REST API using Mirth? - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #11  
Old 04-09-2019, 01:03 AM
obsessio obsessio is offline
OBX.3 Kenobi
 
Join Date: Mar 2015
Location: Turkey
Posts: 164
obsessio is on a distinguished road
Default

Thank you, this is the correct configuration.

Quote:
Originally Posted by agermano View Post
You have to check the Preemptive box next to authentication type.
Reply With Quote
  #12  
Old 04-11-2019, 01:20 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 289
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default Preemptive does not help

Thanks for the suggestion but the result is still the same.
Tried the Preemptive with Basid and Digest but same error:
HTML Code:
HTTP Sender error
ERROR MESSAGE: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 415 Unsupported Media Type</title>
</head>
<body><h2>HTTP ERROR 415</h2>
<p>Problem accessing /api/users/_login. Reason:
<pre>    Unsupported Media Type</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.9.v20180320</a><hr/>

</body>
</html>
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #13  
Old 04-11-2019, 01:37 AM
obsessio obsessio is offline
OBX.3 Kenobi
 
Join Date: Mar 2015
Location: Turkey
Posts: 164
obsessio is on a distinguished road
Default

I attached the channel, please edit user and password.
Attached Files
File Type: xml Client API with Basic Auth.xml (10.4 KB, 7 views)
Reply With Quote
  #14  
Old 04-11-2019, 02:36 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 289
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default Works

Thanks. Indeed and so simple.
Why complex if it can be simpple too
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #15  
Old 04-11-2019, 04:10 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 289
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default /api/users/_login is working also

Got also the https://xxxxx.com:8443/api/users/_login working. Bit different settings. Look at the image.

Most important.
Content Type: application/x-www-form-urlencoded
and the Query Parameters:
username & password
Attached Images
File Type: png Solved API.PNG (23.3 KB, 8 views)
__________________
X Connections
https://documentor.email
https://www.x-connections.com

Last edited by mdehoog; 04-11-2019 at 04:16 AM.
Reply With Quote
  #16  
Old 04-11-2019, 04:22 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 289
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default Even more simple

No Authentication Only Query Parameters
Attached Images
File Type: png Solved API 2.PNG (25.4 KB, 8 views)
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #17  
Old 04-11-2019, 06:18 AM
obsessio obsessio is offline
OBX.3 Kenobi
 
Join Date: Mar 2015
Location: Turkey
Posts: 164
obsessio is on a distinguished road
Default

When you are using basic authentication you don't need to invoke _login endpoint. Directly send your queries.
Reply With Quote
  #18  
Old 06-19-2019, 07:51 AM
it_guy_phx it_guy_phx is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 3
it_guy_phx is on a distinguished road
Default

Old thread, however in my quest to find information regarding accessing the Mirth Connect API this thread kept coming up and it would have helped to have more detailed explanation. My own efforts were to access the API via Powershell and the results can be found here: https://incoherentsysadmin.blogspot....-api-from.html
Reply With Quote
Reply

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:37 PM.


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