REST api

424 views
Skip to first unread message

Dario Brignone

unread,
Jun 16, 2015, 4:00:47 AM6/16/15
to jor...@googlegroups.com
Greetings and thank you for this great software!
I'd like to know more on how to use REST api's, is there any documentation or could you give me some hints?
In particular, I'd like to know how to add / update / delete users using REST (or other api's if available).
Thank you and best regards

Dario

Benjamin BALET

unread,
Jun 16, 2015, 4:08:03 AM6/16/15
to jor...@googlegroups.com
Hi,

I am late with the documentation, but I think this testing script is a good start:

Benjamin

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at http://groups.google.com/group/jorani.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/982a30a8-ae3e-4491-8498-30660a36f73d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dario Brignone

unread,
Jun 16, 2015, 11:53:19 AM6/16/15
to jor...@googlegroups.com
Thank you Benjamin. 

I successfully managed the first example (Create a leave request) but I'm getting a 500 error while trying to execute the next one (Create an employee and display its ID).
The error displays the following line:
Warning: file_get_contents(http://my.domain.path/api/createuser/TRUE): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\inetpub\wwwroot\lms\htdocs\api2.php on line 93 NULL 

I still haven't found a way to solve that, do you have some suggestion?

Thank you in advance,

Dario

Benjamin BALET

unread,
Jun 16, 2015, 2:33:58 PM6/16/15
to jor...@googlegroups.com
You have a log file into application/logs, maybe a missing field.

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at http://groups.google.com/group/jorani.

Dario Brignone

unread,
Jun 17, 2015, 6:29:11 AM6/17/15
to jor...@googlegroups.com
You are right, I missed to provide some mandatory fields,
thank you for your support
Dario

Naveen Kumar

unread,
Jan 11, 2016, 4:01:01 AM1/11/16
to jorani
In application/logs I have index.html file only. I dont have other log files. what shall i do?

Benjamin BALET

unread,
Jan 11, 2016, 4:05:12 AM1/11/16
to jor...@googlegroups.com

What is your problem? What method if the rest api are you using?

Reply all
Reply to author
Forward
0 new messages