Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8402581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:06:37+00:00 2026-06-09T22:06:37+00:00

Basically what I want to do is to create a SilverStripe CMS that allows

  • 0

Basically what I want to do is to create a SilverStripe CMS that allows users to enter information. Instead of displaying this information on a webpage like normal I want to output it using JSON to a hybrid mobile app. I know I have to use the RESTful server API and dataobjects but I’m a little unclear about how it will actually work.

Would appreciate a little enlightenment on this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:06:38+00:00Added an answer on June 9, 2026 at 10:06 pm

    Saving the data into the database is very easy, this is even covered in one of the 5 basic tutorials.

    Providing this information via REST isn’t that hard either, if you just need basic functionality.
    SilverStripe already comes with REST support, but at least in 2.4 this REST support is rather limited and really closely tied to the database model.
    As far as I can tell, the REST Server has been removed in SS 3.0

    Here a link to the API docs on the RestfulServer class in SS 2.4: http://api.silverstripe.org/2.4/sapphire/api/RestfulServer.html#class_details

    as taken from that docs, its rather simple to allow api access to objects:

    class Article extends DataObject {
         static $db = array('Title'=>'Text','Published'=>'Boolean');
         static $api_access = array(
             'view' => array('Title'),
             'edit' => array('Title'),
         );
    }
    

    and than access it via http://mysite.com/api/v1/Article

    If this does not cover your needs, I see 2 alternatives you could take:

    1. Create your own Controller that outputs the rest stuff you need
    2. Or, if you require a complex API, then use a REST framework like https://github.com/Luracast/Restler (but it might be a pain to set up Rester to work within SilverStripe because both, Restler and SS do there own URL magic)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I want to create a method that has a signature like the following:
I basically want to create something like this: So, a user can add/remove items
Basically i want to create a recursive function to implement this program in C
I'm having trouble thinking this through, but basically I want to create an Elixir
Basically I want to create a comment system where comments may have parents that
I basically want to create an Eclipse workspace that can be accessed between accounts
I want to create a menu like on this design A menu where you
Basically I want to create a php code in my template (views-view-field--body.tpl.php) that would
I need to generate time-stamp in this format yyyymmdd. Basically I want to create
Basically I want to create one large object of many object in JavaScript. Something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.