2

i am learning Magento 2 but i don't know how to create API for product info and am getting error while trying

This page contains the following errors:

Error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error.

1
  • Welcome to Magento StackExchange, @Sureka. Commented Jul 11, 2017 at 6:09

1 Answer 1

0

You don't need to "build" an API. Magento built-in API can perform your task already.

Ref: http://devdocs.magento.com/swagger/index.html#!/catalogProductRepositoryV1/catalogProductRepositoryV1GetGet

5
  • I need to create custom api for product info using Sku in magento2
    – Sureka
    Commented Jul 11, 2017 at 6:28
  • This one is for M2 already.
    – PY Yick
    Commented Jul 11, 2017 at 6:29
  • I need code for product info custom api using sku,magento 2
    – Sureka
    Commented Jul 11, 2017 at 6:32
  • You can check magento.stackexchange.com/questions/165825/… It's about order info, but you may find some useful logic.
    – Gediminas
    Commented Jul 11, 2017 at 6:56
  • i don't need oauth based athentication
    – Sureka
    Commented Jul 11, 2017 at 7:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.