During busy period with final year project works, somehow I managed to write this blog post. Today there are so many ways of building a web application and create a REST API. But in here I’m going to tell you a way you can easily create a web application with a REST API using IXAPI. The main advantage of this system is you don’t need to set up database connections, servers, write codes etc. All those fundamentals are provided with IXAPI. You just need to concentrate on the design only. After creating Web App, IXAPI allows clients apps to store, retrieve, modify or delete content stored with it, in RESTful manner.
In addition to that you can test your web application using the Playground facility. Auto generating guidance will help even for a new PHP, Ruby or Python developer to build clients very easily.
Steps to do
- First you need to create an account in IXAPI
- Create a new web application as you wish
- Try your web application with Playground and build clients
First you need to sign up to IXAPI website, nothing but the same procedure as other websites do. After your fist sign-in you will get an interface as follows.
Creating Web Application
In here I’m going to demonstrate on creating a simple web app which contain User (compulsory object), Student and Book objects. Since IXAPI is using an object-oriented model, “student has books” connection exists.
So, first click “New” button on the Active list of Applications (Home screen). Then add the application Name, description and so on. For this case I’m creating 2 objects – Student and Book as shown below.
As you can see you can specify the Field Description about the field, Field Type and whether the field is Mandatory. After creating Student and Book object, click next.
In Connect Object phase you can specify the connection between objects. In here I created the “Student has Books” as follow by simply drag and drop items.
That’s all. You are done with creating Web Application :-). Now you will be redirected back to first page and you will see your app is listed along with Application Key and Application Secret.
By clicking View you can see the details about objects and all REST calls associated with those objects. Through Example page, you will be given the client application code (REST calls) in PHP, Ruby and Python!
Playing in Playground
With the Playground option provided in IXAPI you can play around with your app as much as you want (not in free version ;)). Through that you can understand how to interact with web application in RESTful manner.
First of all REST calls you need to get an Access Token for your application by sending a GET request with Application Key and Application Secret.
Then add the access token you get as a Custom Token to go further in Playground.
Following figure will show creating a new Student and 2 Book objects, using POST request. The ids return from these calls will be used in future REST calls.
Then you can make those two books belongs to “Sam” student object. In the figure below ‘3’ and ‘4’ are identifiers of the Book objects created earlier. You can do this adding one by one too.
Now you can view the Books which belongs to a particular Student, using a GET request. ‘2’ is the identifier of the student “Sam”
Rather than wasting time on setting up databases and writing 100 lines of code, you can simply design the web application like mentioned. With further improvements in design you can make these REST calls secure too. Not only creating and connecting objects, but also there are lot more you can do with IXAPI. Build awesome applications and save money & time for your personal life. Have fun with IXAPI!
IXAPI – https://www.ixapi.com/
Video Tutorial on creating mobile application – http://www.youtube.com/watch?v=1POlrwW63VA