Is it possible to use all Magento 2's functionality through its REST API? - rest

The last time I worked with Magento 1.x there wasn't a good REST API in place.
Now there looks to be one: http://devdocs.magento.com/swagger/index.html
I would like to integrate the Magento checkout and catalog (from a consumer perspective if you will) completely through the REST API (including the cart, stores etcetera).
Is this possible?

Magento 2 came up with vast features of REST API.So many Default REST API's are provided to manage the all customer activities,customer address management,CMS management
To know more core API
MAGENTO(ROOT FOLDER)/vendor/magento/magento-customer/etc/webapi.xml
Even we can create our own custom REST API to manage any other core activity by loading the model(db table)

Related

Creating a ShoppingCart using API's in Unity

I Have created a ShoppingCart in Unity using rest APIs. I am using the Intershop rest APIs. I have just fololwed this Reference Link
So there is a web-site which is already running on online which is a E-Commerce Web-Site in that some products are displayed as regular web-site's view only and some of products are displayed in 3D view which is created in Unity. i am just i have written backed-end C# code that is also for create a ShoppingCart. i have written the code for ShoppingCart First i have generate a basketId with that authentication-token has generated and also authorization if users logged only, with that BasketId, Authentication-Token, and Authorization under the these i have developed the code to adding item to cart and also successfully removing item from cart.
So here my problem was when i add the item to cart it was not showing in my WebSite cart, so how could i solve this problem.
You cant mix stateless rest api call with stateful web session calls. The stateful web base shop wont be able to access the basket you create using the rest apis out of the box.
So either only use the rest api or implement the answer from Nils on the intershop server. The last approach you'll need access to the intershop server.

Do transactions made using REST API show when using Classic API?

I know that transactions made via Classic API will not return when using the REST API. But what about vice versa? Can I pull all transactions if using the Classic API?
The REST API uses a different set of IDs for its data model which are not analogous/compatible with the IDs used by the classic APIs.
So at the moment this is not possible.

Paypal Rest API and Permissions API from classic

Im trying to implement paypal on a website, where I want to give my site-users the ability to add paypal as an payment option for there web shops. So I'm using Laravel, and I found this one, http://jslim.net/blog/2014/09/19/integrate-paypal-sdk-into-laravel-4/ and do pretty much like that.
So my question is, is it possible to combine the Permissions API from the Classic API and using the Rest API for my shop? And then could anyone point me in the right direction?
Currently adding PayPal REST API and Classic API SDKs are causing namespacing conflict issues, as to prevent breaking changes in REST API. The work is under way to release 1.x version of REST APIs that would allow you to work with both rest and classic APIs together.

Difference between Apex REST and REST API

Can anyone tell me the difference between the REST API and APEX REST.I am new to REST concept.I am very much confused about them.
The REST API (Force.com REST API) is the generic API provided by Salesforce. On the other hand, the Apex REST API is an API written by yourself in apex to provide custom methods.
The Force.com REST API is great for things such as CRUD operations. You should write a custom Apex REST API when you want to perform more complicated actions.
REST -> architectural style for distributed hypermedia systems.
APREX REST -> Apex REST enables you to implement custom Web services in Apex and expose them through the REST architecture.
Second is used to build RESTful web services
Use the REST API most of the time. You can access your records and update them like you'd expect. But if you need to do something special, like update two records, and only have the changes saved if both updates were successful, then look at Apex REST, where you can customize what your API call does as much as you like.
More details in this interview: https://developer.salesforce.com/blogs/tech-pubs/2011/10/salesforce-apis-what-they-are-when-to-use-them.html

Build many websites based in a single RESTful API, how should I do?

I'm building a RESTful API (in PHP using Restler Framework v3.0) and I'm so confusing about what are the best pratices of how to use it.
I want to use the Rest API to authenticate users in more than one domain (same users, many domains) and get some "global" info (eg.: latest blog posts), but I have this questions.
My Questions:
Should I use REST instead of database queries?
Should I use the API only for XHR requests?
EDIT: I found this question that is like mine.
I want to build websites using the same users, get "latest posts", etc... If I make the REST API I could use it to get the users instead of querying database and duplicating code.