Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 37846

An application programming interface (API) specifies how some software components should interact with each other.

2 votes
1 answer
2k views

Magento2: getting customer access token

Creating (or say extending) an API where customer can login by Facebook/Google so I want get the same token which magento generates (same as if we login normally). …
Mohammad Mujassam's user avatar
7 votes
Accepted

Get Token Authentication For Customer Logged With Facebook & Twitter : Magento 2

What I understand from you question is, You have only email (and obviously some network specific secret key to validate i.e facebook key). So You just need to load the customer by email id as below. …
Mohammad Mujassam's user avatar
4 votes
2 answers
18k views

magento2: Creating custom Rest API POST method

I know how to create APIs with GET method, wondering how to create custom REST API with POST Method ??.. … How can we pass & get the confidential data from POST method in REST API ?? …
Mohammad Mujassam's user avatar
3 votes
3 answers
12k views

Passing Array in REST Api Magento2 (Post Method)

I have created many rest Api in magento2 which working perfectly... I have only problem to pass the array in custom rest api... for example I am passing the data in below format from postman. … {"vendor_data":{"name":"Mujassam", "mobile":7777}} It gives me below error: "message": "Class array does not exist", "code": -1, Api interface is as below, /** * return placed order status …
Mohammad Mujassam's user avatar
0 votes
Accepted

Magento2: creating custom search REST API

request = $request; } public function getParam(){ $filter = $this->_request->getParam('filter'); } now filter will have the filter parameter value you passed in the API
Mohammad Mujassam's user avatar
0 votes
Accepted

How to create REST API's in Magento 2?

There are many tutorials which guides how to create the rest api. you can have a look a these. … http://inchoo.net/magento/api-magento/magento-2-custom-api/ https://webkul.com/blog/magento2-custom-rest-api/ Create Custom Rest Api in Magento2 and solution for "InvalidArgumentException" error There …
Mohammad Mujassam's user avatar
1 vote
1 answer
692 views

Magento2: creating custom search REST API

I have created many Api's (both GET and POST) but now I want to create the custom search API with different URL Structure (all the params after ?). … I can create the search API in below URL formate.. /V1/getSearch/vendor/:vendArea/type/:typeId but I want to achieve the same with below given formate.. /V1/getSearch/? …
Mohammad Mujassam's user avatar
1 vote
0 answers
98 views

Magento 2: Problem Creating the custom Search REST API URL?

I want achieve this kind of url in my custom REST API, Any Suggestion? http://localhost/rest/V1/products? … name=mujassam&value=5 Before Also I asked same question Magento2: creating custom search REST API
Mohammad Mujassam's user avatar
0 votes
2 answers
829 views

Magento2: Unable to post 2D Array from REST Api

I am unable to post multi dimensional array from REST API (POST Method). posting the data in below format. … :"Mujassam", "no":"7760"}, "services":[{"product":"mobile", "id": "1"}, {"product":"day", "id":"2"}]} Here Services is 2D Array Interface is as below: /** * return placed order status * @api
Mohammad Mujassam's user avatar