Coder Social home page Coder Social logo

opencart-api's Introduction

Opencart Custom & Customizabla API module

This module provides Tax Rates, Orders and Products lists endpoints but you can add new endpoints by simple touches.

Installation

  • Download this repo
  • Copy files to opencart root folder

Config

  • Login to opencart dashboard
  • Navigate System > Users > API
  • Create new user with status enabled
  • v3+: Add your IP to Allowed IP Adresses section

Test Endpoints

Run in Postman

Demo Environment

{
  "id": "8c8f2e2e-9853-c500-07d4-5fbb6f006c4a",
  "name": "Opencart Custom Api",
  "values": [
    {
      "enabled": true,
      "key": "base",
      "value": "http://opencart-api.yedincisenol.com/",
      "type": "text"
    },
    {
      "enabled": true,
      "key": "apiUsername",
      "value": "apidemo",
      "type": "text"
    },
    {
      "enabled": true,
      "key": "apiPassword",
      "value": "TEFgfrpDu8KJSDtv21wweANMIe5PBmV5hU2ICE0BA1nS0uUlyl7sMkYg06N8sZNyAcKVHgcAtSav6cssWWmtY0yFUofTXmgde3iMwzkQjqzZfzTLRptOmJSDFLF4vKhx7GtBW8OJTBMymzCyikxKYWr6Y7jCuuEuIN6YHqCT4a00tsb30wmFZh0TCpphs4Cup1ypdQ8e8U4kPPFTbnCRafMVYrLhpYnwTmCVanUeeBmGDixfuGBZfgvHkDnbrldV",
      "type": "text"
    }
  ],
}

Important: For try endpoints you must call first, login endpoints for your version

Contributing

  • Add more endpoints
  • Open issue any bug on the project
  • Add more document about the project

Security Vulnerabilities

If you discover a security vulnerability within Laravel api startup, please send an e-mail to İbrahim S. Orencik at [email protected]. All security vulnerabilities will be promptly addressed.

opencart-api's People

Contributors

byldrm avatar frknikiz avatar salyangoz avatar yedincisenol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

opencart-api's Issues

Doesn't work api

I copied api,php to upload/catalog/controller/custom/api.php.

reloaded php-fpm nginx, but at every requests i got a 404 status code with error page.

I got api_token use /index.php?route=api/account/login

image

Postman or php demo

Hello there,

I'm a little new to processes like api and posman.

I am getting a warning under Test Endpoints Heading "Run in Postman" Button. Screenshot below.

! [image] (https://user-images.githubusercontent.com/56412326/102912730-cb319080-448e-11eb-90ac-8ea7c8afc09f.png)

by the way, i can login and take token from opencart's api connection with my own php.

With yedincisenol/opencart-api how should we make the requests? Which parameters should we send?
I would be very glad if you could give a php code example about it.

Thanks in advance,
Kerim Senturk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.