Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is a restful API and a backend service (like Parse) the same thing?

Rest confuses me sometimes. I know that it involves creating an API layer over your data and then you make calls to that data through the API. The best way I think of Rest is that the actual Twitter website interfaces with the data-layer through API calls.

That made me wonder then: Is a backend-service like Parse also a Rest API to your data?

What might be the difference between Parse and say, building your own Rest API like this guy did: http://coenraets.org/blog/2012/10/nodecellar-sample-application-with-backbone-js-twitter-bootstrap-node-js-express-and-mongodb/ (he's getting some solid google rankings for his API tutorials).

A simple yes/no might answer the question, but providing details will really be appreciated.

I look forward to the answers.

like image 370
Joe Avatar asked Jul 20 '13 07:07

Joe


People also ask

Is a REST API backend?

REST and GraphQL are both standard ways to develop backend APIs. But over the past decade REST APIs have dominated as a choice for developing backend API's. And many companies and developers use it actively in their projects.

What is Parse backend?

Parse is an open-source framework for backend development. It is widely used by developers to accelerate mobile app development and get rid of repetitive tasks.

Is REST API and RESTful services same?

Put simply, there are no differences between REST and RESTful as far as APIs are concerned. REST is the set of constraints. RESTful refers to an API adhering to those constraints. It can be used in web services, applications, and software.

What replaces RESTful API?

Since being introduced by Facebook, GraphQL has taken the API world by storm as an alternative to REST APIs. GraphQL fixes many problems that API developers and users have found with RESTful architecture.


1 Answers

Parse is built around a restful API just like most, if not all, other mBaaS out there. A RESTful Api isn't just CRUD operations though nor is it the same thing as Parse. Parse is a company that provides a remote backend to developers using a RESTful api.

RESTful api !== BaaS

I have dealt with about 5 mBaaS and Parse isn't really one of them, but I've glanced at their API reference for JS and I think they use mongodb clusters. An mBaaS usually provides the developer the ability to have cloud storage, push notifications, server side code, easier social media integration, and mobile analytics. So it's not just any backend. Although there are some mBaaS, like Urban Airship, that only supply push notifications to developers.

A RESTful api at it's core usually has some key functions that are centered/wrapped around an httpRequest

They usually use "GET", "POST", "DELETE", and "PUT" to make all calls. Some allow the implementation of rpc for custom server logic. An mBaaS takes a lot of work to implement right and well. You can't build Parse in a Day. It takes a lot of planning and such. The differences between Parse and that guy in link are in the implementation, range of features, and purpose in general(the audience).

To better understand REST maybe look here you can also read the HTTP spec if you are feeling adventurous.

like image 173
CBIII Avatar answered Nov 02 '22 05:11

CBIII