Web services questions
Hi everybody,
I'm looking for some information on how to build web services on top of modules built with a Module Builder ? I saw in the documentation how one could implement a web service but there is no information on how it could be done on top of module builder.
The module that is built with module builder contains following fields that should be accessible within a webservice :
- text fields
- tags
- taxonolmies
- media files (videos, images, and so on) : a link to the related media file is sufficient.
Could you please provide me with some guidance on how it could be done ?
Thank you,
Hi Thomas,
Thank you for contacting us.
If you are talking about creating a custom service it can be done with any method available to ASP.NET. I would personally recommend Web API as it returns really clean data that's easy to work with. Here's a link to a partner blog post on how to do this in Sitefinity.
http://blog.falafel.com/blogs/basem-emara/2012/06/20/using-asp.net-web-api-for-sitefinity-rest-services
With this method you can use the API to query and return any information you need from module builder using the Code references that were generated with your module builder module.
I hope this helps.
Patrick,
Thank you for your reply. I'm sorry for the noob questions but I'm new to the platform.
Can you just confirm that the code references that were generated retrives all kind of fields used in the modul builder ?
I mean the dynamic fields, taxonomy, etc ?
Regards,
Thomas
Hello Thomas,
No problem and welcome to Sitefinity!
You can navigate to your module builder module under Administration > Module Builder > [Your Module Name].
From there look at this screenshot.
http://screencast.com/t/2j4YtA4do
I hope this helps!
Gonna also post this here...
www.sitefinitysteve.com/.../simple-wcf-by-sitefinity
Until webapi gets native attribute routing (coming next release?), and sitefinity actually adopts it as the framework...I'm sticking to WCF :)