Web Service

Permalink 1 user found helpful
Hi,

need help about:
1. does concrete5 have web service? if have , where to find it?
2. if concrete5 does not have, can we create our own web service? then where to begin with it?any reference?

thanks & any help will be appreciated :D

 
madeforspace replied on at Permalink Reply
madeforspace
Hi

Just hit that Services button in the top navigation and you will see everything that Concrete5 directly can do for you.

Hope that helps

Alex
mkly replied on at Permalink Reply
mkly
Not that I know of. Although it is mvc and this wouldn't be hardest thing in the entire world to add. This is a really good idea.
jordanlev replied on at Permalink Reply
jordanlev
What web service? What is it you want to do?
If you mean you want a Concrete5 to expose REST "endpoints", it's definitely possible. But if what you're building is entirely a web service, then it doesn't make any sense at all to use C5 for that -- it's primarily designed for websites with pages.
If you can provide some detail about what exactly you want to implement I'm sure people can point you in the direction of how to do that in C5.
zhilong replied on at Permalink Reply
Hi all friends, i mean Concrete5 to expose REST Web service / REST "endpoints" (which can return JSON format & do GET/PUT/POST/DELETE).
so in concrete5, where should i start with? any reference link?

Thanks a lot
jordanlev replied on at Permalink Reply
jordanlev
You mean does the Concrete5 system itself expose all of its own operations as REST endpoints (like adding new pages, editing page content, adding new users, etc. etc.?)?
The answer to that unfortunately is NO.

There is a way to register new users via ajax calls (seehttp://www.concrete5.org/community/forums/themes/customizing-login-... for example), but that's the only one I know of. If you really wanted to, you might be able to build some wrappers around core functions, but I doubt you can do this for anything as complex as editing content on pages (because each page contains different blocks of content, and each block type has a totally different way of dealing with the creation and editing of content).
Mnkras replied on at Permalink Reply
Mnkras
Im actually debating making this, got to get a bit more familiar with apis though
mkly replied on at Permalink Reply
mkly
I was thinking more about having different views based on the request. view.js.php and view.xml.php

That doesn't seem like an enormous stretch.
zhilong replied on at Permalink Reply
thanks Jordanlev for the info & guidance :)
and also thanks Mnkras & mkly :)

hope concrete5 will have rest api soon...
5fly replied on at Permalink Reply
5fly
Just to register interest in using/contributing to this if it becomes a project!