Can anyone Explain How to use This project.. There is no proper documentation for this project.

Comments

Sundhar Krishna created an issue. See original summary.

larskhansen’s picture

Hi Sundhar,

This isn't really the place to answer support questions, but perhaps the maintainers will be inspired to write documentation ;-)

I've been playing with this module for a while now and I have the basic covered.
You don't write about your current status - where you are in implementing the external API.

I have an external test api, http://rest/book, that displays a list of books in JSON format:

[{"pid":1,"titel":"It"},{"pid":2,"titel":"It 2"},{"pid":3,"titel":"It 3"},{"pid":4,"titel":"It 4"},{"pid":5,"titel":"It 5"}]

http://rest/book/1 displays a single book in JSON format: (forfatter is author in danish)

{"pid":"1","titel":"It","year":1981,"forfatter":[1]}

In the Drupal External Entities I have the following setup:

Storage Client: REST
Format: json
Endpoint: http://rest/book

I then add the fields from the rest (external entities id = pid / title = title / (new D8 field called year) = year etc etc.)
That's it.

If your External Entity type reference to another EE (Ex: author) then you only need the ID. As I have in forfatter (author).

Best regards, Lars Hansen

lquessenberry’s picture

This seems overly complicated. A few examples would be doing everyone very well.

Sundhar Krishna’s picture

Thank you larskhansen.

Hanno’s picture

Status: Active » Fixed

fixed, see #2650546

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.