× Requests and support related to jBackend.

JBackend Module ZOO : About JSON Structure

  • Developpement
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #4949 by Developpement
JBackend Module ZOO : About JSON Structure was created by Developpement
Hello,

Config : Joomla 2.5

I am using jBackend for my rest api and in particular the content related to the module Zoo. t's works fine !

But in my JSON Structure I have a problem. In each item of the fields "elements" is it possible to have an 'identifer" alphanumeric(that we can define ourselves) (ie : name, my-identifier ...) instead of the encrypted string (in my exemple below 32b1c7cf-8c9f-459f-9df2-c763d42a3df9
"elements": {
    "32b1c7cf-8c9f-459f-9df2-c763d42a3df9": {
      "identifier": "32b1c7cf-8c9f-459f-9df2-c763d42a3df9",
      "type": "text",
      "data": [
        {
          "value": ""
        }
      ]
    },
...

Thanks you for your help !

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #4951 by admin
Replied by admin on topic JBackend Module ZOO : About JSON Structure
Hi,
there is an option in the plugin settings to identify elements:

www.selfget.com/documentation/jbackend-joomla30/zoo-module-api.html

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • Developpement
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #4952 by Developpement
Replied by Developpement on topic JBackend Module ZOO : About JSON Structure
Thanks you for your quick reply.
But when i enabled this option the identifier remains the same ; just the Json structure changed ...

I would like something that looks like this :
"elements": {
    "title": {
      "identifier": "title",
      "type": "text",
      "data": [
        {
          "value": "My title"
        }
      ]
    },
  "description": {
      "identifier": "description",
      "type": "text",
      "data": [
        {
          "value": "My description"
        }
      ]
    },
...

It is possible ?

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #4953 by admin
Replied by admin on topic JBackend Module ZOO : About JSON Structure
Sorry,
I realized that the documentation is not updated. I will do it ASAP.

If you install the latest 1.1.1 ZOO plugin version, you will get two additional options to include and name elements, which is what you are asking for.

Kind regards,
Luigi
The following user(s) said Thank You: Developpement

Please Log in or Create an account to join the conversation.

  • Developpement
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago - 8 years 11 months ago #4954 by Developpement
Replied by Developpement on topic JBackend Module ZOO : About JSON Structure

Sorry,
I realized that the documentation is not updated. I will do it ASAP.

If you install the latest 1.1.1 ZOO plugin version, you will get two additional options to include and name elements, which is what you are asking for.

Kind regards,
Luigi


Amazing ! :ohmy:
Thanks you
Last edit: 8 years 11 months ago by Developpement.

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #4955 by admin
Replied by admin on topic JBackend Module ZOO : About JSON Structure
U're welcome :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.163 seconds