Giter Club home page Giter Club logo

pimcore-api's Introduction

⛔️ DEPRECATED

This is no longer supported - pimcore has multiple great APIs now.

pimcore-api

API-functionality for pimcore to return object data

pimcore

You will need to ad a static-route to your pimcore that looks like this one:

Pattern Reverse Controller Action Variables
/([a-z]+)\/([0-9]+)(\/[a-z]+)?(\/[a-z]{2})?/ /api/%objectType/%articleNum{/%returnType}{/%language} api default objectType,articleNum,returnType,language

Calling the API

The API is based on REST. So you can receive data via a simple URL-call. The most basic way to call it is:

https://YOUR_URL/OBJECT_TYPE/OBJECT_ID/?apiKey=YOUR_API_KEY

This will return an UTF-8 encoded JSON-object.

Params

The API can handle several params to customize the results.

returnType (URL, GET, POST)

The type of the return. You can choose between JSON and XML. Default-value is JSON. You can either set this param via the URL-path:

https://YOUR_URL/OBJECT_TYPE/OBJECT_ID/RETURN_TYPE/?apiKey=YOUR_API_KEY

…or add it as a GET-param:

https://YOUR_URL/OBJECT_TYPE/OBJECT_ID/?returnType=RETURN_TYPE&apiKey=YOUR_API_KEY

…or send it via POST.

language (URL, GET, POST)

If the chosen language exists, the data will be returned in this language. Else you will receive them in the fallback language ('de'). To set this param you can either set it via the URL-path:

https://YOUR_URL/OBJECT_TYPE/OBJECT_ID/LANGUAGE/?apiKey=YOUR_API_KEY

…or add it as a GET-param:

https://YOUR_URL/OBJECT_TYPE/OBJECT_ID/?returnType=LANGUAGE&apiKey=YOUR_API_KEY

…or send it via POST.

att (GET, POST)

With this param you can choose which attributes you want to be returned. To set this param you can either add it as a GET-param:

https://YOUR_URL/OBJECT_TYPE/OBJECT_ID/?att[0]=ATTRIBUTE_1&att[1]=ATTRIBUTE_1&apiKey=YOUR_API_KEY

…or send it via POST.

pimcore-api's People

Contributors

stephanweinhold avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.