Creating a Web or a Mobile Application with REST API using IXAPI

Introduction

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

  1. First you need to create an account in IXAPI
  2. Create a new web application as you wish
  3. Try your web application with Playground and build clients

First Step

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.

First Look At IXAPI
First Look At IXAPI

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.

Student Object
Student Object
Book Object
Book Object

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.

Creating Connections
Creating Connections

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.

Description on Application
Description on Application

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.

Get Access Token
Get Access Token

Then add the access token you get as a Custom Token to go further in Playground.

Save Access Token for future REST calls
Save Access Token for future REST calls

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.

Creating Objects REST calls
Creating Objects 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.

Connecting Books with a Student
Connecting Books with a Student

Now you can view the Books which belongs to a particular Student, using a GET request. ‘2’ is the identifier of the student “Sam”

Get Book list
Get Book list

Conclusion

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!

Resources

IXAPI – https://www.ixapi.com/

Video Tutorial on creating mobile application – http://www.youtube.com/watch?v=1POlrwW63VA

Advertisements

One thought on “Creating a Web or a Mobile Application with REST API using IXAPI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s