cancel
Showing results for 
Search instead for 
Did you mean: 

Most Simple REST request to ping Alfresco server

el_mozo
Champ in-the-making
Champ in-the-making
Hello,

I'm developping a Windows 10 Apps and I need to know if the app can join the alfresco server or not.

I Need to test the connectivity between my App and the Alfresco server. Unfortunaly i can't use ping in UWP so I would like to call the most simple REST request to test if my App can succefully call the Alfresco server.

What is the most simple REST request I can do ??

Thx in advance. Regards.
2 REPLIES 2

rjohnson
Star Contributor
Star Contributor
{yourhostURLSmiley Tongueort}/share/page/dologin

This is a POST request and you send UID & PWD in the payload like username=MyUser&password=MyPWD. Although you could use any websript you like without logining in, provided you get something like 403 then Alfresco is activley telling you to go away which proves its there.

nicolasraoul
Star Contributor
Star Contributor

How about just this (method GET):

{yourhostURLSmiley Tongueort}/alfresco/

The HTTP status (or "connection failed") will tell you whether Alfresco is running properly or not (HTTP status 302 = running properly).

The response is dynamic and of small size.

If Alfresco is in the process of starting, the request will hang until Alfresco is properly started.

I believe that it pollutes audit less than a dologin.