-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Template Resources #8
Comments
JSON Example of a {
"type": "taxonomy_term--dp_variables",
"id": "befdefda-f2a3-48e6-8986-78c02ac8ae5a",
"attributes": {
"drupal_internal__tid": 2256,
"drupal_internal__revision_id": 2256,
"langcode": "en",
"revision_created": "2019-09-19T15:18:35+00:00",
"revision_log_message": null,
"status": true,
"name": "emissions_scenario: Baseline (Scenario: Historical)",
"description": {
"value": "\u003Cp\u003EIn baseline time period, we know exactly what happened so there are no emission scenarios.\u003C\/p\u003E\r\n\r\n\u003Cp\u003ETherefore, the \u0022Baseline\u0022 emissions scenario CAN\u0026nbsp;and MUST\u0026nbsp;be used with \u0022Baseline\u0022 time period!\u003C\/p\u003E\r\n\r\n\u003Cp\u003E\u0026nbsp;\u003C\/p\u003E\r\n",
"format": "basic_html",
"processed": "\u003Cp\u003EIn baseline time period, we know exactly what happened so there are no emission scenarios.\u003C\/p\u003E\n\n\u003Cp\u003ETherefore, the \u0022Baseline\u0022 emissions scenario CAN\u00a0and MUST\u00a0be used with \u0022Baseline\u0022 time period!\u003C\/p\u003E\n\n\u003Cp\u003E\u00a0\u003C\/p\u003E\n"
},
"weight": 0,
"changed": "2019-09-23T12:20:14+00:00",
"default_langcode": true,
"revision_translation_affected": true,
"path": {
"alias": null,
"pid": null,
"langcode": "en"
},
"field_var_meaning": null,
"field_var_name": "emissions_scenario",
"field_var_value": "Baseline"
},
"relationships": {
"vid": {
"data": {
"type": "taxonomy_vocabulary--taxonomy_vocabulary",
"id": "8f682e27-a50f-4966-8164-a797127df26c"
},
"links": {
"self": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a\/relationships\/vid"
},
"related": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a\/vid"
}
}
},
"revision_user": {
"data": null,
"links": {
"self": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a\/relationships\/revision_user"
},
"related": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a\/revision_user"
}
}
},
"parent": {
"data": [
{
"type": "taxonomy_term--dp_variables",
"id": "virtual",
"meta": {
"links": {
"help": {
"href": "https:\/\/www.drupal.org\/docs\/8\/modules\/json-api\/core-concepts#virtual",
"meta": {
"about": "Usage and meaning of the \u0027virtual\u0027 resource identifier."
}
}
}
}
}
],
"links": {
"self": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a\/relationships\/parent"
},
"related": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a\/parent"
}
}
},
"field_var_meaning2": {
"data": {
"type": "taxonomy_term--dp_variable_meanings",
"id": "c323b4ae-6ae9-4cd6-8896-351b5b34a8de"
},
"links": {
"self": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a\/relationships\/field_var_meaning2"
},
"related": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a\/field_var_meaning2"
}
}
}
},
"links": {
"self": {
"href": "https:\/\/csis.myclimateservice.eu\/jsonapi\/taxonomy_term\/dp_variables\/befdefda-f2a3-48e6-8986-78c02ac8ae5a"
}
}
} |
Another example of accidental complexity caused by incoherence: Variables in URI Templates are enclosed in So we have to deal with that in the source code or mess around with the database. |
Each variable has to be manually added to the variables entityqueue in order to become available in the resource editor. See also clarity-h2020/docker-drupal#129 |
This comment has been minimized.
This comment has been minimized.
done |
|
Support for Resources with variables.
The text was updated successfully, but these errors were encountered: