Closed indytechcook closed 2 years ago
Hey team! Please add your planning poker estimate with ZenHub @indytechcook @timcosgrove @ElijahLynn @ndouglas @olivereri
I wanted to share some of the things the jsonapi_extra
module can do. In this example, I used the paragraph
called rich_text_char_limit_1000
. Here is what I changed between the before and after
paragraph--rich_text_char_limit_1000
to paragraph--rich-text
field_wysiwyg
to content
field_wysiwyg
/ content
to only return the single value from `processed.Before:
"attributes": {
"drupal_internal__id": 13987,
"drupal_internal__revision_id": 161347,
"langcode": "en",
"status": true,
"created": "2020-10-19T22:47:23+00:00",
"parent_id": "8504",
"parent_type": "node",
"parent_field_name": "field_answer",
"behavior_settings": [],
"default_langcode": true,
"revision_translation_affected": true,
"field_wysiwyg": {
"value": "<p>You can <a data-entity-substitution=\"canonical\" data-entity-type=\"node\" data-entity-uuid=\"2ba48b5f-a92c-4775-9cfd-9530d1c87347\" href=\"/node/711\">check the status</a> of your VA claim, appeal, or decision review on VA.gov.</p>\r\n\r\n<p>You’ll need to <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">sign in first</a> with<strong> DS Logon</strong>, <strong>My HealtheVet</strong>, or<strong> ID.me</strong>. If you don’t have any of these accounts, you can <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">get one now</a>.</p>\r\n\r\n<p>If you need help, please call us at <a aria-label=\"8 0 0. 8 2 7. 1 0 0 0.\" href=\"tel:+18008271000\">800-827-1000</a>. We’re here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>\r\n",
"format": "rich_text_limited",
"processed": "<p>You can <a data-entity-substitution=\"canonical\" data-entity-type=\"node\" data-entity-uuid=\"2ba48b5f-a92c-4775-9cfd-9530d1c87347\" href=\"/claim-or-appeal-status\" title=\"Check your VA claim or appeal status\">check the status</a> of your VA claim, appeal, or decision review on VA.gov.</p>\n<p>You’ll need to <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">sign in first</a> with<strong> DS Logon</strong>, <strong>My HealtheVet</strong>, or<strong> ID.me</strong>. If you don’t have any of these accounts, you can <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">get one now</a>.</p>\n<p>If you need help, please call us at <a aria-label=\"8 0 0. 8 2 7. 1 0 0 0.\" href=\"tel:+18008271000\">800-827-1000</a>. We’re here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>\n"
}
},
After:
"attributes": {
"drupal_internal__id": 13987,
"drupal_internal__revision_id": 161347,
"langcode": "en",
"status": true,
"created": "2020-10-19T22:47:23+00:00",
"parent_id": "8504",
"parent_type": "node",
"parent_field_name": "field_answer",
"behavior_settings": [],
"default_langcode": true,
"revision_translation_affected": true,
"content": "<p>You can <a data-entity-substitution=\"canonical\" data-entity-type=\"node\" data-entity-uuid=\"2ba48b5f-a92c-4775-9cfd-9530d1c87347\" href=\"/claim-or-appeal-status\" title=\"Check your VA claim or appeal status\">check the status</a> of your VA claim, appeal, or decision review on VA.gov.</p>\n<p>You’ll need to <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">sign in first</a> with<strong> DS Logon</strong>, <strong>My HealtheVet</strong>, or<strong> ID.me</strong>. If you don’t have any of these accounts, you can <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">get one now</a>.</p>\n<p>If you need help, please call us at <a aria-label=\"8 0 0. 8 2 7. 1 0 0 0.\" href=\"tel:+18008271000\">800-827-1000</a>. We’re here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>\n"
},
There are 3 different levels of API Design that we considering in looking the JSON:API from Drupal
jsonapi_extras
module (Drupal)Here the JSON:API request to get most of the data needed for the URL: https://www.va.gov/resources/how-do-i-change-my-name-in-my-deers-record/
First API Request:
This approach assumes that UUID is embedded in the HTML via the content_build
or the UUID is already known.
This request gets most of the data needed.
/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3?include=field_answer,field_alert_single.field_alert_non_reusable_ref.field_va_paragraphs,field_buttons,field_tags.field_audience_beneficiares,field_related_information,field_related_benefit_hubs,field_contact_information.field_contact_default
Another step is to translate the Drupal URI to a URL. For example, the links which reference a page in Drupal are displayed like this:
"field_button_link": {
"uri": "entity:node/15995",
"title": "How to update a legal name change with VA",
"options": []
}
You’ll need to call the Defense Manpower Data Center (DMDC) support office. They’ll tell you what documents to provide and what to do next.
\r\n\r\nCall the DMDC at 800-538-9552. They’re open Monday through Friday, 8:00 a.m. to 8:00 p.m. (closed on federal holidays). If you have hearing loss, call TTY: 866-363-2883.
\r\n\r\nIf you’re a Veteran or family member and you’ve changed your legal name, you must update your name in DEERS. This keeps you eligible for military benefits like TRICARE—and any VA benefits you receive.
\r\n\r\nNote: DEERS is the Defense Enrollment Eligibility Reporting System. It’s maintained by the Department of Defense.
\r\n", "format": "rich_text_limited", "processed": "You’ll need to call the Defense Manpower Data Center (DMDC) support office. They’ll tell you what documents to provide and what to do next.
\nCall the DMDC at 800-538-9552. They’re open Monday through Friday, 8:00 a.m. to 8:00 p.m. (closed on federal holidays). If you have hearing loss, call TTY: 866-363-2883.
\nIf you’re a Veteran or family member and you’ve changed your legal name, you must update your name in DEERS. This keeps you eligible for military benefits like TRICARE—and any VA benefits you receive.
\nNote: DEERS is the Defense Enrollment Eligibility Reporting System. It’s maintained by the Department of Defense.
\n" } }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "3ffc29ff-5b72-4f6a-a51b-7076c3f62f22" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/rich_text_char_limit_1000/92e7e2af-edee-4869-a975-446a5c6d3f8d/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/rich_text_char_limit_1000/92e7e2af-edee-4869-a975-446a5c6d3f8d/relationships/paragraph_type" } } } } }, { "type": "paragraph--alert_single", "id": "54f804c9-a89b-48c8-8ce7-63e6d1499e46", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46" } }, "attributes": { "drupal_internal__id": 28825, "drupal_internal__revision_id": 447318, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_alert_single", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "field_alert_selection": "NR", "field_markup": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "f2e64319-f14b-4bc1-8674-4661358e4242" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/relationships/paragraph_type" } } }, "field_alert_block_reference": { "data": null, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/field_alert_block_reference" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/relationships/field_alert_block_reference" } } }, "field_alert_non_reusable_ref": { "data": { "type": "paragraph--non_reusable_alert", "id": "da81026e-e7fd-4316-99a2-7e22b0d5aa60", "meta": { "target_revision_id": 447317 } }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/field_alert_non_reusable_ref" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/relationships/field_alert_non_reusable_ref" } } } } }, { "type": "paragraph--non_reusable_alert", "id": "da81026e-e7fd-4316-99a2-7e22b0d5aa60", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60" } }, "attributes": { "drupal_internal__id": 28824, "drupal_internal__revision_id": 447317, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "28825", "parent_type": "paragraph", "parent_field_name": "field_alert_non_reusable_ref", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "field_alert_heading": "You must also change your legal name with VA separately", "field_alert_type": "information" }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "3d633fc0-97d6-4087-b709-edfa2d1e6a1e" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60/relationships/paragraph_type" } } }, "field_va_paragraphs": { "data": [ { "type": "paragraph--wysiwyg", "id": "0574b3b3-4d7a-4908-9060-4fa52eb7d47b", "meta": { "target_revision_id": 447315 } }, { "type": "paragraph--expandable_text", "id": "4c937b14-be0a-43d2-a948-98091684100a", "meta": { "target_revision_id": 447316 } } ], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60/field_va_paragraphs" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60/relationships/field_va_paragraphs" } } } } }, { "type": "paragraph--wysiwyg", "id": "0574b3b3-4d7a-4908-9060-4fa52eb7d47b", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/wysiwyg/0574b3b3-4d7a-4908-9060-4fa52eb7d47b" } }, "attributes": { "drupal_internal__id": 28823, "drupal_internal__revision_id": 447315, "langcode": "en", "status": true, "created": "2021-02-08T22:00:14+00:00", "parent_id": "28824", "parent_type": "paragraph", "parent_field_name": "field_va_paragraphs", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "field_wysiwyg": { "value": "Your information in DEERS must match what's on file with VA. When you change your name in DEERS, your information doesn't automatically get updated with VA. So you’ll need to contact your VA medical center and each VA program office that you receive direct benefit payments from and ask them to change your name on file.
\r\n", "format": "rich_text", "processed": "Your information in DEERS must match what's on file with VA. When you change your name in DEERS, your information doesn't automatically get updated with VA. So you’ll need to contact your VA medical center and each VA program office that you receive direct benefit payments from and ask them to change your name on file.
" } }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "885e4b61-cfd2-44b9-94ae-f068ba2b48b6" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/wysiwyg/0574b3b3-4d7a-4908-9060-4fa52eb7d47b/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/wysiwyg/0574b3b3-4d7a-4908-9060-4fa52eb7d47b/relationships/paragraph_type" } } } } }, { "type": "paragraph--expandable_text", "id": "4c937b14-be0a-43d2-a948-98091684100a", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/expandable_text/4c937b14-be0a-43d2-a948-98091684100a" } }, "attributes": { "drupal_internal__id": 85578, "drupal_internal__revision_id": 447316, "langcode": "en", "status": true, "created": "2021-10-06T13:38:47+00:00", "parent_id": "28824", "parent_type": "paragraph", "parent_field_name": "field_va_paragraphs", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "field_text_expander": "Test Expander", "field_wysiwyg": { "value": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
\r\n", "format": "rich_text", "processed": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
" } }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "0a249911-a230-46ae-8af2-e3752bb2c46e" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/expandable_text/4c937b14-be0a-43d2-a948-98091684100a/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/expandable_text/4c937b14-be0a-43d2-a948-98091684100a/relationships/paragraph_type" } } } } }, { "type": "paragraph--button", "id": "26fc6b3e-3063-4459-9339-1b7c8156eb92", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/button/26fc6b3e-3063-4459-9339-1b7c8156eb92" } }, "attributes": { "drupal_internal__id": 28827, "drupal_internal__revision_id": 410443, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_buttons", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "field_button_label": "Update your name on file with VA", "field_button_link": { "uri": "entity:node/15995", "title": "How to update a legal name change with VA", "options": [] } }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "f2ea2f57-89da-43d4-be22-ba46d728a286" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/button/26fc6b3e-3063-4459-9339-1b7c8156eb92/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/button/26fc6b3e-3063-4459-9339-1b7c8156eb92/relationships/paragraph_type" } } } } }, { "type": "paragraph--button", "id": "2bac7c0a-6578-40e8-b75c-3e7f229cee14", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/button/2bac7c0a-6578-40e8-b75c-3e7f229cee14" } }, "attributes": { "drupal_internal__id": 28923, "drupal_internal__revision_id": 410444, "langcode": "en", "status": true, "created": "2021-02-12T17:42:13+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_buttons", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "field_button_label": "Go to DEERS FAQs on milConnect", "field_button_link": { "uri": "https://milconnect.dmdc.osd.mil/milconnect/public/faq/DEERS", "title": "", "options": [] } }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "f2ea2f57-89da-43d4-be22-ba46d728a286" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/button/2bac7c0a-6578-40e8-b75c-3e7f229cee14/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/button/2bac7c0a-6578-40e8-b75c-3e7f229cee14/relationships/paragraph_type" } } } } }, { "type": "paragraph--audience_topics", "id": "53876e46-b12c-4a68-ba8e-a0c3f82b4ded", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded" } }, "attributes": { "drupal_internal__id": 28832, "drupal_internal__revision_id": 447321, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_tags", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "field_audience_selection": "beneficiaries", "field_markup": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "1b952f0b-ff2c-486b-8404-266e1aad73fb" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/paragraph_type" } } }, "field_audience_beneficiares": { "data": { "type": "taxonomy_term--audience_beneficiaries", "id": "386eb70d-696c-4af3-8986-306ce63d90de" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/field_audience_beneficiares" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/field_audience_beneficiares" } } }, "field_non_beneficiares": { "data": null, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/field_non_beneficiares" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/field_non_beneficiares" } } }, "field_topics": { "data": [], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/field_topics" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/field_topics" } } } } }, { "type": "taxonomy_term--audience_beneficiaries", "id": "386eb70d-696c-4af3-8986-306ce63d90de", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de" } }, "attributes": { "drupal_internal__tid": 268, "drupal_internal__revision_id": 268, "langcode": "en", "revision_created": "2020-09-10T22:27:56+00:00", "revision_log_message": null, "status": true, "name": "All Veterans", "description": null, "weight": 0, "changed": "2021-01-13T20:20:40+00:00", "default_langcode": true, "revision_translation_affected": true, "metatag": null, "path": { "alias": "/resources/tag/all-veterans", "pid": 11290, "langcode": "en" }, "field_audience_rs_homepage": true }, "relationships": { "vid": { "data": { "type": "taxonomy_vocabulary--taxonomy_vocabulary", "id": "181dd6ed-50cb-4c8f-a1ec-3529ea20869f" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/vid" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/relationships/vid" } } }, "revision_user": { "data": null, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/revision_user" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/relationships/revision_user" } } }, "parent": { "data": [ { "type": "taxonomy_term--audience_beneficiaries", "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 'virtual' resource identifier." } } } } } ], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/parent" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/relationships/parent" } } } } }, { "type": "paragraph--link_teaser", "id": "e800c299-d555-42da-83e4-301126f09fcf", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/e800c299-d555-42da-83e4-301126f09fcf" } }, "attributes": { "drupal_internal__id": 28829, "drupal_internal__revision_id": 410446, "langcode": "en", "status": true, "created": "2021-02-08T22:03:12+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "field_link": { "uri": "entity:node/472", "title": "Request your military service records (including DD214)", "options": [] }, "field_link_summary": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/e800c299-d555-42da-83e4-301126f09fcf/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/e800c299-d555-42da-83e4-301126f09fcf/relationships/paragraph_type" } } } } }, { "type": "paragraph--link_teaser", "id": "6af4b68b-c18a-4ec8-8598-6c5348aaa349", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/6af4b68b-c18a-4ec8-8598-6c5348aaa349" } }, "attributes": { "drupal_internal__id": 28830, "drupal_internal__revision_id": 410447, "langcode": "en", "status": true, "created": "2021-02-08T22:06:33+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "field_link": { "uri": "entity:node/8473", "title": "Change your address on file with VA", "options": [] }, "field_link_summary": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/6af4b68b-c18a-4ec8-8598-6c5348aaa349/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/6af4b68b-c18a-4ec8-8598-6c5348aaa349/relationships/paragraph_type" } } } } }, { "type": "paragraph--link_teaser", "id": "8b4e3067-333d-4739-9682-9ab191fe7ad1", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/8b4e3067-333d-4739-9682-9ab191fe7ad1" } }, "attributes": { "drupal_internal__id": 80673, "drupal_internal__revision_id": 410448, "langcode": "en", "status": true, "created": "2021-08-27T17:38:08+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "field_link": { "uri": "entity:node/8259", "title": "Managing your VA.gov profile", "options": [] }, "field_link_summary": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/8b4e3067-333d-4739-9682-9ab191fe7ad1/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/link_teaser/8b4e3067-333d-4739-9682-9ab191fe7ad1/relationships/paragraph_type" } } } } }, { "type": "node--landing_page", "id": "be5ce8bb-48af-4ac0-bf45-124081bb3dcb", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb?resourceVersion=id%3A8793" } }, "attributes": { "drupal_internal__nid": 79, "drupal_internal__vid": 8793, "langcode": "en", "revision_timestamp": "2019-08-21T03:01:20+00:00", "revision_log": null, "status": true, "title": "VA records", "created": "2019-02-06T16:37:58+00:00", "changed": "2019-08-21T03:01:20+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": { "alias": "/records", "pid": 390, "langcode": "en" }, "field_description": "Access your VA records and documents online to manage your health and benefits. Download your VA letters, get Veteran ID Cards, get your VA medical records, request your DD214, view your payment history, and learn how to apply for a certificate of eligibility. ", "field_home_page_hub_label": "Records", "field_intro_text": "Access your VA records and documents online to more easily manage your benefits.", "field_links": [], "field_meta_tags": null, "field_meta_title": "VA Records | Veterans Affairs", "field_page_last_built": "2021-10-05T18:37:31-04:00", "field_plainlanguage_date": null, "field_teaser_text": "Apply for a printed Veteran ID card, get your VA benefit letters and medical records, and learn how to apply for a discharge upgrade.", "field_title_icon": "records" }, "relationships": { "node_type": { "data": { "type": "node_type--node_type", "id": "9bf68a65-e5fb-42ab-b13e-ee905507aeac" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/node_type?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/node_type?resourceVersion=id%3A8793" } } }, "revision_uid": { "data": { "type": "user--user", "id": "a933a54d-ac8c-40bc-8f58-795b4e61221c" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/revision_uid?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/revision_uid?resourceVersion=id%3A8793" } } }, "uid": { "data": { "type": "user--user", "id": "b02c2ff5-dfe1-4542-beec-3fd410a3f267" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/uid?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/uid?resourceVersion=id%3A8793" } } }, "field_administration": { "data": { "type": "taxonomy_term--administration", "id": "cf0807aa-0b82-45cb-9c66-6bedae9555f2" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_administration?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_administration?resourceVersion=id%3A8793" } } }, "field_alert": { "data": null, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_alert?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_alert?resourceVersion=id%3A8793" } } }, "field_promo": { "data": { "type": "block_content--promo", "id": "4a9807dc-7656-4792-b5f9-1a0a80eb2424" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_promo?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_promo?resourceVersion=id%3A8793" } } }, "field_related_links": { "data": null, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_related_links?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_related_links?resourceVersion=id%3A8793" } } }, "field_spokes": { "data": [ { "type": "paragraph--list_of_link_teasers", "id": "ccaaba46-82ac-4c45-b7b6-41f21764992e", "meta": { "target_revision_id": 25105 } } ], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_spokes?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_spokes?resourceVersion=id%3A8793" } } }, "field_support_services": { "data": [ { "type": "node--support_service", "id": "4b965df6-2ea0-4990-878f-8a5d0e19f504" }, { "type": "node--support_service", "id": "fd3a6f5f-ab6b-460d-a35f-7f0cb7edb4b3" }, { "type": "node--support_service", "id": "c6e3d4cd-698d-406c-b2b0-cf9f93e5b7ec" }, { "type": "node--support_service", "id": "79938f13-7be8-4ce6-92ea-35671532c645" }, { "type": "node--support_service", "id": "f01de83a-b111-444a-b7cc-748e0faf10fd" } ], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_support_services?resourceVersion=id%3A8793" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_support_services?resourceVersion=id%3A8793" } } } } }, { "type": "paragraph--contact_information", "id": "41061f66-e861-4468-8c01-e18ef9717d43", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43" } }, "attributes": { "drupal_internal__id": 28828, "drupal_internal__revision_id": 447320, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_contact_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "field_contact_info_switch": "DC", "field_markup": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "4619702e-c2f3-4e29-90c0-a0e2a89c20c4" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/paragraph_type" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/paragraph_type" } } }, "field_additional_contact": { "data": null, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/field_additional_contact" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/field_additional_contact" } } }, "field_benefit_hub_contacts": { "data": { "type": "node--landing_page", "id": "be5ce8bb-48af-4ac0-bf45-124081bb3dcb" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/field_benefit_hub_contacts" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/field_benefit_hub_contacts" } } }, "field_contact_default": { "data": { "type": "node--support_service", "id": "79938f13-7be8-4ce6-92ea-35671532c645" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/field_contact_default" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/field_contact_default" } } } } }, { "type": "node--support_service", "id": "79938f13-7be8-4ce6-92ea-35671532c645", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645?resourceVersion=id%3A338480" } }, "attributes": { "drupal_internal__nid": 61, "drupal_internal__vid": 338480, "langcode": "en", "revision_timestamp": "2019-06-03T18:39:40+00:00", "revision_log": "Bulk operation publish revision", "status": true, "title": "MyVA411 main information line:", "created": "2019-01-28T20:48:53+00:00", "changed": "2020-10-30T14:58:18+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": { "alias": "/va-central-office/myva411-main-information-line", "pid": 199, "langcode": "en" }, "field_link": { "uri": "tel:1-800-698-2411", "title": "", "options": [] }, "field_page_last_built": "2021-10-05T18:37:31-04:00", "field_phone_number": "800-698-2411" }, "relationships": { "node_type": { "data": { "type": "node_type--node_type", "id": "27533ffc-851f-4edc-8465-518ea2414b27" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/node_type?resourceVersion=id%3A338480" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/node_type?resourceVersion=id%3A338480" } } }, "revision_uid": { "data": { "type": "user--user", "id": "e62ded06-1de9-4617-bd70-595036edc7ee" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/revision_uid?resourceVersion=id%3A338480" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/revision_uid?resourceVersion=id%3A338480" } } }, "uid": { "data": { "type": "user--user", "id": "b02c2ff5-dfe1-4542-beec-3fd410a3f267" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/uid?resourceVersion=id%3A338480" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/uid?resourceVersion=id%3A338480" } } }, "field_administration": { "data": { "type": "taxonomy_term--administration", "id": "2c331a6d-b525-4f0c-8bea-4ecde41c7ef0" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/field_administration?resourceVersion=id%3A338480" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/field_administration?resourceVersion=id%3A338480" } } }, "field_office": { "data": { "type": "node--office", "id": "c715d441-b6cb-4067-92eb-0650e97b7d62" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/field_office?resourceVersion=id%3A338480" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/field_office?resourceVersion=id%3A338480" } } } } } ], "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3?include=field_answer%2Cfield_alert_single.field_alert_non_reusable_ref.field_va_paragraphs%2Cfield_buttons%2Cfield_tags.field_audience_beneficiares%2Cfield_related_information%2Cfield_related_benefit_hubs%2Cfield_contact_information.field_contact_default" } } } ```All of the related entities are stored within the includes
section of the json. The includes section is an array of all the related objects. Nesting and relations are stored within the property object.
One of the complicated examples are getting the data which drives "Tags" part of the page.
To get the label "All Veterans":
field_tags
to the includes
"field_tags": {
"data": {
"type": "paragraph--audience_topics",
"id": "53876e46-b12c-4a68-ba8e-a0c3f82b4ded",
"meta": {
"target_revision_id": 447321
}
},
feild_tags
is a entity reference field to the audience_topics
paragraph types.field_audience_beneficiares
has to be pulled in.field_audience_beneficiares
field from field_tags
the includes field_tags
needs to be changed to field_tags.field_audience_beneficiares
. field_tags.field_audience_beneficiares
to the includes will add both the related JSON:API object from field_tags
and the field field_audience_beneficiares
from field_tags
and it will be displayed as:This example shows the knowledge necessary for a front-end Engineer to pull data for a Q&A page.
The modules https://www.drupal.org/project/jsonapi_extras
and jsonapi_includes
allow for customization of the core Drupal JSON:API.
The jsonapi_extras
module allows for renaming resources (node--articles
to articles
), renaming fields (field_tags
to tag
), flatening content and custom formatting on fields.
An example of using renaming and flattening with the a wysiwyg field.
Before:
"field_wysiwyg": {
"value": "<p>You can <a data-entity-substitution=\"canonical\" data-entity-type=\"node\" data-entity-uuid=\"2ba48b5f-a92c-4775-9cfd-9530d1c87347\" href=\"/node/711\">check the status</a> of your VA claim, appeal, or decision review on VA.gov.</p>\r\n\r\n<p>You’ll need to <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">sign in first</a> with<strong> DS Logon</strong>, <strong>My HealtheVet</strong>, or<strong> ID.me</strong>. If you don’t have any of these accounts, you can <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">get one now</a>.</p>\r\n\r\n<p>If you need help, please call us at <a aria-label=\"8 0 0. 8 2 7. 1 0 0 0.\" href=\"tel:+18008271000\">800-827-1000</a>. We’re here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>\r\n",
"format": "rich_text_limited",
"processed": "<p>You can <a data-entity-substitution=\"canonical\" data-entity-type=\"node\" data-entity-uuid=\"2ba48b5f-a92c-4775-9cfd-9530d1c87347\" href=\"/claim-or-appeal-status\" title=\"Check your VA claim or appeal status\">check the status</a> of your VA claim, appeal, or decision review on VA.gov.</p>\n<p>You’ll need to <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">sign in first</a> with<strong> DS Logon</strong>, <strong>My HealtheVet</strong>, or<strong> ID.me</strong>. If you don’t have any of these accounts, you can <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">get one now</a>.</p>\n<p>If you need help, please call us at <a aria-label=\"8 0 0. 8 2 7. 1 0 0 0.\" href=\"tel:+18008271000\">800-827-1000</a>. We’re here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>\n"
}
After:
"content": "<p>You can <a data-entity-substitution=\"canonical\" data-entity-type=\"node\" data-entity-uuid=\"2ba48b5f-a92c-4775-9cfd-9530d1c87347\" href=\"/claim-or-appeal-status\" title=\"Check your VA claim or appeal status\">check the status</a> of your VA claim, appeal, or decision review on VA.gov.</p>\n<p>You’ll need to <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">sign in first</a> with<strong> DS Logon</strong>, <strong>My HealtheVet</strong>, or<strong> ID.me</strong>. If you don’t have any of these accounts, you can <a href=\"http://www.va.gov/?next=%2Fprofile%2F\">get one now</a>.</p>\n<p>If you need help, please call us at <a aria-label=\"8 0 0. 8 2 7. 1 0 0 0.\" href=\"tel:+18008271000\">800-827-1000</a>. We’re here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>\n"
When only enabling the jsonapi_include
module the following changes occurred:
attributes
object are moved to the data
object. The data
object is now flat.included
fields are expanded in the data
objectUsing the example above for getting the "All Veterans" tag.
Your information in DEERS must match what's on file with VA. When you change your name in DEERS, your information doesn't automatically get updated with VA. So you’ll need to contact your VA medical center and each VA program office that you receive direct benefit payments from and ask them to change your name on file.
", "meta": { "target_revision_id": 226929 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "885e4b61-cfd2-44b9-94ae-f068ba2b48b6" } } ] } }, "answer": { "type": "paragraph--rich_text", "id": "92e7e2af-edee-4869-a975-446a5c6d3f8d", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/rich_text/92e7e2af-edee-4869-a975-446a5c6d3f8d" } }, "drupal_internal__id": 28826, "drupal_internal__revision_id": 410442, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_answer", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "content": "You’ll need to call the Defense Manpower Data Center (DMDC) support office. They’ll tell you what documents to provide and what to do next.
\nCall the DMDC at 800-538-9552. They’re open Monday through Friday, 8:00 a.m. to 8:00 p.m. (closed on federal holidays). If you have hearing loss, call TTY: 866-363-2883.
\nIf you’re a Veteran or family member and you’ve changed your legal name, you must update your name in DEERS. This keeps you eligible for military benefits like TRICARE—and any VA benefits you receive.
\nNote: DEERS is the Defense Enrollment Eligibility Reporting System. It’s maintained by the Department of Defense.
\n", "meta": { "target_revision_id": 410442 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "3ffc29ff-5b72-4f6a-a51b-7076c3f62f22" } }, "buttons": [ { "type": "paragraph--button", "id": "26fc6b3e-3063-4459-9339-1b7c8156eb92", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/button/26fc6b3e-3063-4459-9339-1b7c8156eb92" } }, "drupal_internal__id": 28827, "drupal_internal__revision_id": 410443, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_buttons", "button_label": "Update your name on file with VA", "button_link": { "uri": "entity:node/15995", "title": "How to update a legal name change with VA", "options": [], "url": "http://va-gov-cms.lndo.site/resources/how-to-change-your-legal-name-on-file-with-va" }, "meta": { "target_revision_id": 410443 } }, { "type": "paragraph--button", "id": "2bac7c0a-6578-40e8-b75c-3e7f229cee14", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/button/2bac7c0a-6578-40e8-b75c-3e7f229cee14" } }, "drupal_internal__id": 28923, "drupal_internal__revision_id": 410444, "langcode": "en", "status": true, "created": "2021-02-12T17:42:13+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_buttons", "button_label": "Go to DEERS FAQs on milConnect", "button_link": { "uri": "https://milconnect.dmdc.osd.mil/milconnect/public/faq/DEERS", "title": "", "options": [], "url": "https://milconnect.dmdc.osd.mil/milconnect/public/faq/DEERS" }, "meta": { "target_revision_id": 410444 } } ], "contact_information": { "type": "paragraph--contact_information", "id": "41061f66-e861-4468-8c01-e18ef9717d43", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43" } }, "drupal_internal__id": 28828, "drupal_internal__revision_id": 410445, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_contact_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "contact_info_switch": "DC", "markup": null, "meta": { "target_revision_id": 410445 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "4619702e-c2f3-4e29-90c0-a0e2a89c20c4" }, "additional_contact": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/additional_contact" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/additional_contact" } } }, " benefit_hub_contacts": { "type": "node--landing_page", "id": "be5ce8bb-48af-4ac0-bf45-124081bb3dcb" }, "contact_default": { "type": "node--support_service", "id": "79938f13-7be8-4ce6-92ea-35671532c645", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645?resourceVersion=id%3A338480" } }, "drupal_internal__nid": 61, "drupal_internal__vid": 338480, "langcode": "en", "revision_timestamp": "2019-06-03T18:39:40+00:00", "revision_log": "Bulk operation publish revision", "status": true, "title": "MyVA411 main information line:", "created": "2019-01-28T20:48:53+00:00", "changed": "2020-10-30T14:58:18+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": { "alias": "/va-central-office/myva411-main-information-line", "pid": 199, "langcode": "en" }, "field_link": { "uri": "tel:1-800-698-2411", "title": "", "options": [] }, "field_page_last_built": "2021-10-01T09:42:20-04:00", "field_phone_number": "800-698-2411", "node_type": { "type": "node_type--node_type", "id": "27533ffc-851f-4edc-8465-518ea2414b27" }, "revision_uid": { "type": "user--user", "id": "e62ded06-1de9-4617-bd70-595036edc7ee" }, "uid": { "type": "user--user", "id": "b02c2ff5-dfe1-4542-beec-3fd410a3f267" }, "field_administration": { "type": "taxonomy_term--administration", "id": "2c331a6d-b525-4f0c-8bea-4ecde41c7ef0" }, "field_office": { "type": "node--office", "id": "c715d441-b6cb-4067-92eb-0650e97b7d62" } } }, "other_categories": [ { "type": "taxonomy_term--resource_support", "id": "593d7523-f562-442a-a940-f81956da5e96" }, { "type": "taxonomy_term--resource_support", "id": "9588df79-970f-49db-a40c-61672ef8deec" }, { "type": "taxonomy_term--resource_support", "id": "4efc1792-24d7-4328-b121-d7e6f70daacc" }, { "type": "taxonomy_term--resource_support", "id": "5414620f-a6bd-4e05-bafb-c8efde0e3fea" } ], "primary_category": { "type": "taxonomy_term--resource_support", "id": "3f79ad6d-7146-464c-9f6a-c3546a90d9a7" }, "benefit_hubs": [ { "type": "node--landing_page", "id": "be5ce8bb-48af-4ac0-bf45-124081bb3dcb", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb?resourceVersion=id%3A8793" } }, "drupal_internal__nid": 79, "drupal_internal__vid": 8793, "langcode": "en", "revision_timestamp": "2019-08-21T03:01:20+00:00", "revision_log": null, "status": true, "title": "VA records", "created": "2019-02-06T16:37:58+00:00", "changed": "2019-08-21T03:01:20+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": { "alias": "/records", "pid": 390, "langcode": "en" }, "field_description": "Access your VA records and documents online to manage your health and benefits. Download your VA letters, get Veteran ID Cards, get your VA medical records, request your DD214, view your payment history, and learn how to apply for a certificate of eligibility. ", "field_home_page_hub_label": "Records", "field_intro_text": "Access your VA records and documents online to more easily manage your benefits.", "field_links": [], "field_meta_tags": null, "field_meta_title": "VA Records | Veterans Affairs", "field_page_last_built": "2021-10-01T09:42:20-04:00", "field_plainlanguage_date": null, "field_title_icon": "records", "teaser_text": "Apply for a printed Veteran ID card, get your VA benefit letters and medical records, and learn how to apply for a discharge upgrade.", "node_type": { "type": "node_type--node_type", "id": "9bf68a65-e5fb-42ab-b13e-ee905507aeac" }, "revision_uid": { "type": "user--user", "id": "a933a54d-ac8c-40bc-8f58-795b4e61221c" }, "uid": { "type": "user--user", "id": "b02c2ff5-dfe1-4542-beec-3fd410a3f267" }, "field_administration": { "type": "taxonomy_term--administration", "id": "cf0807aa-0b82-45cb-9c66-6bedae9555f2" }, "field_alert": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_alert?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_alert?resourceVersion=id%3A8793" } } }, "field_promo": { "type": "block_content--promo", "id": "4a9807dc-7656-4792-b5f9-1a0a80eb2424" }, "field_related_links": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_related_links?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_related_links?resourceVersion=id%3A8793" } } }, "field_spokes": [ { "type": "paragraph--list_of_link_teasers", "id": "ccaaba46-82ac-4c45-b7b6-41f21764992e", "meta": { "target_revision_id": 25105 } } ], "field_support_services": [ { "type": "node--support_service", "id": "4b965df6-2ea0-4990-878f-8a5d0e19f504" }, { "type": "node--support_service", "id": "fd3a6f5f-ab6b-460d-a35f-7f0cb7edb4b3" }, { "type": "node--support_service", "id": "c6e3d4cd-698d-406c-b2b0-cf9f93e5b7ec" }, { "type": "node--support_service", "id": "79938f13-7be8-4ce6-92ea-35671532c645" }, { "type": "node--support_service", "id": "f01de83a-b111-444a-b7cc-748e0faf10fd" } ] } ], "related_information": [ { "type": "paragraph--link_teaser", "id": "e800c299-d555-42da-83e4-301126f09fcf", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/e800c299-d555-42da-83e4-301126f09fcf" } }, "drupal_internal__id": 28829, "drupal_internal__revision_id": 410446, "langcode": "en", "status": true, "created": "2021-02-08T22:03:12+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "link": { "uri": "entity:node/472", "title": "Request your military service records (including DD214)", "options": [], "url": "http://va-gov-cms.lndo.site/records/get-military-service-records" }, "link_summary": null, "meta": { "target_revision_id": 410446 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" } }, { "type": "paragraph--link_teaser", "id": "6af4b68b-c18a-4ec8-8598-6c5348aaa349", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/6af4b68b-c18a-4ec8-8598-6c5348aaa349" } }, "drupal_internal__id": 28830, "drupal_internal__revision_id": 410447, "langcode": "en", "status": true, "created": "2021-02-08T22:06:33+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "link": { "uri": "entity:node/8473", "title": "Change your address on file with VA", "options": [], "url": "http://va-gov-cms.lndo.site/resources/change-your-address-on-file-with-va" }, "link_summary": null, "meta": { "target_revision_id": 410447 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" } }, { "type": "paragraph--link_teaser", "id": "8b4e3067-333d-4739-9682-9ab191fe7ad1", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/8b4e3067-333d-4739-9682-9ab191fe7ad1" } }, "drupal_internal__id": 80673, "drupal_internal__revision_id": 410448, "langcode": "en", "status": true, "created": "2021-08-27T17:38:08+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "link": { "uri": "entity:node/8259", "title": "Managing your VA.gov profile", "options": [], "url": "http://va-gov-cms.lndo.site/resources/managing-your-vagov-profile" }, "link_summary": null, "meta": { "target_revision_id": 410448 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" } } ], "tags": { "type": "paragraph--audience_topics", "id": "53876e46-b12c-4a68-ba8e-a0c3f82b4ded", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded" } }, "drupal_internal__id": 28832, "drupal_internal__revision_id": 410449, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_tags", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "audience_selection": "beneficiaries", "markup": null, "meta": { "target_revision_id": 410449 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "1b952f0b-ff2c-486b-8404-266e1aad73fb" }, "audience_beneficiares": { "type": "taxonomy_term--audience_beneficiaries", "id": "386eb70d-696c-4af3-8986-306ce63d90de", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de" } }, "drupal_internal__tid": 268, "drupal_internal__revision_id": 268, "langcode": "en", "revision_created": "2020-09-10T22:27:56+00:00", "revision_log_message": null, "status": true, "name": "All Veterans", "description": null, "weight": 0, "changed": "2021-01-13T20:20:40+00:00", "default_langcode": true, "revision_translation_affected": true, "metatag": null, "path": { "alias": "/resources/tag/all-veterans", "pid": 11290, "langcode": "en" }, "field_audience_rs_homepage": true, "vid": { "type": "taxonomy_vocabulary--taxonomy_vocabulary", "id": "181dd6ed-50cb-4c8f-a1ec-3529ea20869f" }, "revision_user": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/revision_user" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/relationships/revision_user" } } }, "parent": [ { "type": "taxonomy_term--audience_beneficiaries", "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 'virtual' resource identifier." } } } } } ] }, "non_beneficiares": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/non_beneficiares" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/non_beneficiares" } } }, "topics": { "data": [], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/topics" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/topics" } } } } }, "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3?include=answer%2Calert.alert_content.content%2Cbuttons%2Ctags.audience_beneficiares%2Crelated_information%2Cbenefit_hubs%2Ccontact_information.contact_default&jsonapi_include=0" } } } ```You’ll need to call the Defense Manpower Data Center (DMDC) support office. They’ll tell you what documents to provide and what to do next.
\nCall the DMDC at 800-538-9552. They’re open Monday through Friday, 8:00 a.m. to 8:00 p.m. (closed on federal holidays). If you have hearing loss, call TTY: 866-363-2883.
\nIf you’re a Veteran or family member and you’ve changed your legal name, you must update your name in DEERS. This keeps you eligible for military benefits like TRICARE—and any VA benefits you receive.
\nNote: DEERS is the Defense Enrollment Eligibility Reporting System. It’s maintained by the Department of Defense.
\n" }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "3ffc29ff-5b72-4f6a-a51b-7076c3f62f22" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/rich_text/92e7e2af-edee-4869-a975-446a5c6d3f8d/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/rich_text/92e7e2af-edee-4869-a975-446a5c6d3f8d/relationships/paragraph_type" } } } } }, { "type": "paragraph--alert_single", "id": "54f804c9-a89b-48c8-8ce7-63e6d1499e46", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46" } }, "attributes": { "drupal_internal__id": 28825, "drupal_internal__revision_id": 410441, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_alert_single", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "alert_selection": "NR", "markup": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "f2e64319-f14b-4bc1-8674-4661358e4242" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/relationships/paragraph_type" } } }, "alert_block": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/alert_block" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/relationships/alert_block" } } }, "alert_content": { "data": { "type": "paragraph--non_reusable_alert", "id": "da81026e-e7fd-4316-99a2-7e22b0d5aa60", "meta": { "target_revision_id": 410440 } }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/alert_content" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/alert_single/54f804c9-a89b-48c8-8ce7-63e6d1499e46/relationships/alert_content" } } } } }, { "type": "paragraph--non_reusable_alert", "id": "da81026e-e7fd-4316-99a2-7e22b0d5aa60", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60" } }, "attributes": { "drupal_internal__id": 28824, "drupal_internal__revision_id": 410440, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "28825", "parent_type": "paragraph", "parent_field_name": "field_alert_non_reusable_ref", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "alert_heading": "You must also change your legal name with VA separately", "alert_type": "information" }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "3d633fc0-97d6-4087-b709-edfa2d1e6a1e" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60/relationships/paragraph_type" } } }, "content": { "data": [ { "type": "paragraph--wysiwyg", "id": "0574b3b3-4d7a-4908-9060-4fa52eb7d47b", "meta": { "target_revision_id": 226929 } } ], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60/content" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/non_reusable_alert/da81026e-e7fd-4316-99a2-7e22b0d5aa60/relationships/content" } } } } }, { "type": "paragraph--wysiwyg", "id": "0574b3b3-4d7a-4908-9060-4fa52eb7d47b", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/wysiwyg/0574b3b3-4d7a-4908-9060-4fa52eb7d47b" } }, "attributes": { "drupal_internal__id": 28823, "drupal_internal__revision_id": 226929, "langcode": "en", "status": true, "created": "2021-02-08T22:00:14+00:00", "parent_id": "28824", "parent_type": "paragraph", "parent_field_name": "field_va_paragraphs", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "wysiwyg": "Your information in DEERS must match what's on file with VA. When you change your name in DEERS, your information doesn't automatically get updated with VA. So you’ll need to contact your VA medical center and each VA program office that you receive direct benefit payments from and ask them to change your name on file.
" }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "885e4b61-cfd2-44b9-94ae-f068ba2b48b6" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/wysiwyg/0574b3b3-4d7a-4908-9060-4fa52eb7d47b/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/wysiwyg/0574b3b3-4d7a-4908-9060-4fa52eb7d47b/relationships/paragraph_type" } } } } }, { "type": "paragraph--button", "id": "26fc6b3e-3063-4459-9339-1b7c8156eb92", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/button/26fc6b3e-3063-4459-9339-1b7c8156eb92" } }, "attributes": { "drupal_internal__id": 28827, "drupal_internal__revision_id": 410443, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_buttons", "button_label": "Update your name on file with VA", "button_link": { "uri": "entity:node/15995", "title": "How to update a legal name change with VA", "options": [], "url": "http://va-gov-cms.lndo.site/resources/how-to-change-your-legal-name-on-file-with-va" } } }, { "type": "paragraph--button", "id": "2bac7c0a-6578-40e8-b75c-3e7f229cee14", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/button/2bac7c0a-6578-40e8-b75c-3e7f229cee14" } }, "attributes": { "drupal_internal__id": 28923, "drupal_internal__revision_id": 410444, "langcode": "en", "status": true, "created": "2021-02-12T17:42:13+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_buttons", "button_label": "Go to DEERS FAQs on milConnect", "button_link": { "uri": "https://milconnect.dmdc.osd.mil/milconnect/public/faq/DEERS", "title": "", "options": [], "url": "https://milconnect.dmdc.osd.mil/milconnect/public/faq/DEERS" } } }, { "type": "paragraph--audience_topics", "id": "53876e46-b12c-4a68-ba8e-a0c3f82b4ded", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded" } }, "attributes": { "drupal_internal__id": 28832, "drupal_internal__revision_id": 410449, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_tags", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "audience_selection": "beneficiaries", "markup": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "1b952f0b-ff2c-486b-8404-266e1aad73fb" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/paragraph_type" } } }, "audience_beneficiares": { "data": { "type": "taxonomy_term--audience_beneficiaries", "id": "386eb70d-696c-4af3-8986-306ce63d90de" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/audience_beneficiares" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/audience_beneficiares" } } }, "non_beneficiares": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/non_beneficiares" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/non_beneficiares" } } }, "topics": { "data": [], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/topics" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/audience_topics/53876e46-b12c-4a68-ba8e-a0c3f82b4ded/relationships/topics" } } } } }, { "type": "taxonomy_term--audience_beneficiaries", "id": "386eb70d-696c-4af3-8986-306ce63d90de", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de" } }, "attributes": { "drupal_internal__tid": 268, "drupal_internal__revision_id": 268, "langcode": "en", "revision_created": "2020-09-10T22:27:56+00:00", "revision_log_message": null, "status": true, "name": "All Veterans", "description": null, "weight": 0, "changed": "2021-01-13T20:20:40+00:00", "default_langcode": true, "revision_translation_affected": true, "metatag": null, "path": { "alias": "/resources/tag/all-veterans", "pid": 11290, "langcode": "en" }, "field_audience_rs_homepage": true }, "relationships": { "vid": { "data": { "type": "taxonomy_vocabulary--taxonomy_vocabulary", "id": "181dd6ed-50cb-4c8f-a1ec-3529ea20869f" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/vid" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/relationships/vid" } } }, "revision_user": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/revision_user" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/relationships/revision_user" } } }, "parent": { "data": [ { "type": "taxonomy_term--audience_beneficiaries", "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 'virtual' resource identifier." } } } } } ], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/parent" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de/relationships/parent" } } } } }, { "type": "paragraph--link_teaser", "id": "e800c299-d555-42da-83e4-301126f09fcf", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/e800c299-d555-42da-83e4-301126f09fcf" } }, "attributes": { "drupal_internal__id": 28829, "drupal_internal__revision_id": 410446, "langcode": "en", "status": true, "created": "2021-02-08T22:03:12+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "link": { "uri": "entity:node/472", "title": "Request your military service records (including DD214)", "options": [], "url": "http://va-gov-cms.lndo.site/records/get-military-service-records" }, "link_summary": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/e800c299-d555-42da-83e4-301126f09fcf/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/e800c299-d555-42da-83e4-301126f09fcf/relationships/paragraph_type" } } } } }, { "type": "paragraph--link_teaser", "id": "6af4b68b-c18a-4ec8-8598-6c5348aaa349", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/6af4b68b-c18a-4ec8-8598-6c5348aaa349" } }, "attributes": { "drupal_internal__id": 28830, "drupal_internal__revision_id": 410447, "langcode": "en", "status": true, "created": "2021-02-08T22:06:33+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "link": { "uri": "entity:node/8473", "title": "Change your address on file with VA", "options": [], "url": "http://va-gov-cms.lndo.site/resources/change-your-address-on-file-with-va" }, "link_summary": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/6af4b68b-c18a-4ec8-8598-6c5348aaa349/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/6af4b68b-c18a-4ec8-8598-6c5348aaa349/relationships/paragraph_type" } } } } }, { "type": "paragraph--link_teaser", "id": "8b4e3067-333d-4739-9682-9ab191fe7ad1", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/8b4e3067-333d-4739-9682-9ab191fe7ad1" } }, "attributes": { "drupal_internal__id": 80673, "drupal_internal__revision_id": 410448, "langcode": "en", "status": true, "created": "2021-08-27T17:38:08+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_related_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": null, "link": { "uri": "entity:node/8259", "title": "Managing your VA.gov profile", "options": [], "url": "http://va-gov-cms.lndo.site/resources/managing-your-vagov-profile" }, "link_summary": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "072db7a4-476e-41a6-ab49-c44184281451" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/8b4e3067-333d-4739-9682-9ab191fe7ad1/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/link_teaser/8b4e3067-333d-4739-9682-9ab191fe7ad1/relationships/paragraph_type" } } } } }, { "type": "node--landing_page", "id": "be5ce8bb-48af-4ac0-bf45-124081bb3dcb", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb?resourceVersion=id%3A8793" } }, "attributes": { "drupal_internal__nid": 79, "drupal_internal__vid": 8793, "langcode": "en", "revision_timestamp": "2019-08-21T03:01:20+00:00", "revision_log": null, "status": true, "title": "VA records", "created": "2019-02-06T16:37:58+00:00", "changed": "2019-08-21T03:01:20+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": "/records", "field_description": "Access your VA records and documents online to manage your health and benefits. Download your VA letters, get Veteran ID Cards, get your VA medical records, request your DD214, view your payment history, and learn how to apply for a certificate of eligibility. ", "field_home_page_hub_label": "Records", "field_intro_text": "Access your VA records and documents online to more easily manage your benefits.", "field_links": [], "field_meta_tags": null, "field_meta_title": "VA Records | Veterans Affairs", "field_page_last_built": "2021-10-01T09:42:20-04:00", "field_plainlanguage_date": null, "teaser_text": "Apply for a printed Veteran ID card, get your VA benefit letters and medical records, and learn how to apply for a discharge upgrade.", "field_title_icon": "records" }, "relationships": { "node_type": { "data": { "type": "node_type--node_type", "id": "9bf68a65-e5fb-42ab-b13e-ee905507aeac" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/node_type?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/node_type?resourceVersion=id%3A8793" } } }, "revision_uid": { "data": { "type": "user--user", "id": "a933a54d-ac8c-40bc-8f58-795b4e61221c" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/revision_uid?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/revision_uid?resourceVersion=id%3A8793" } } }, "uid": { "data": { "type": "user--user", "id": "b02c2ff5-dfe1-4542-beec-3fd410a3f267" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/uid?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/uid?resourceVersion=id%3A8793" } } }, "field_administration": { "data": { "type": "taxonomy_term--administration", "id": "cf0807aa-0b82-45cb-9c66-6bedae9555f2" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_administration?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_administration?resourceVersion=id%3A8793" } } }, "field_alert": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_alert?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_alert?resourceVersion=id%3A8793" } } }, "field_promo": { "data": { "type": "block_content--promo", "id": "4a9807dc-7656-4792-b5f9-1a0a80eb2424" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_promo?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_promo?resourceVersion=id%3A8793" } } }, "field_related_links": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_related_links?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_related_links?resourceVersion=id%3A8793" } } }, "field_spokes": { "data": [ { "type": "paragraph--list_of_link_teasers", "id": "ccaaba46-82ac-4c45-b7b6-41f21764992e", "meta": { "target_revision_id": 25105 } } ], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_spokes?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_spokes?resourceVersion=id%3A8793" } } }, "field_support_services": { "data": [ { "type": "node--support_service", "id": "4b965df6-2ea0-4990-878f-8a5d0e19f504" }, { "type": "node--support_service", "id": "fd3a6f5f-ab6b-460d-a35f-7f0cb7edb4b3" }, { "type": "node--support_service", "id": "c6e3d4cd-698d-406c-b2b0-cf9f93e5b7ec" }, { "type": "node--support_service", "id": "79938f13-7be8-4ce6-92ea-35671532c645" }, { "type": "node--support_service", "id": "f01de83a-b111-444a-b7cc-748e0faf10fd" } ], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/field_support_services?resourceVersion=id%3A8793" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/landing_page/be5ce8bb-48af-4ac0-bf45-124081bb3dcb/relationships/field_support_services?resourceVersion=id%3A8793" } } } } }, { "type": "paragraph--contact_information", "id": "41061f66-e861-4468-8c01-e18ef9717d43", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43" } }, "attributes": { "drupal_internal__id": 28828, "drupal_internal__revision_id": 410445, "langcode": "en", "status": true, "created": "2021-02-08T21:57:50+00:00", "parent_id": "16009", "parent_type": "node", "parent_field_name": "field_contact_information", "behavior_settings": [], "default_langcode": true, "revision_translation_affected": true, "contact_info_switch": "DC", "markup": null }, "relationships": { "paragraph_type": { "data": { "type": "paragraphs_type--paragraphs_type", "id": "4619702e-c2f3-4e29-90c0-a0e2a89c20c4" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/paragraph_type" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/paragraph_type" } } }, "additional_contact": { "data": null, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/additional_contact" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/additional_contact" } } }, " benefit_hub_contacts": { "data": { "type": "node--landing_page", "id": "be5ce8bb-48af-4ac0-bf45-124081bb3dcb" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/%20benefit_hub_contacts" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/%20benefit_hub_contacts" } } }, "contact_default": { "data": { "type": "node--support_service", "id": "79938f13-7be8-4ce6-92ea-35671532c645" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/contact_default" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/paragraph/contact_information/41061f66-e861-4468-8c01-e18ef9717d43/relationships/contact_default" } } } } }, { "type": "node--support_service", "id": "79938f13-7be8-4ce6-92ea-35671532c645", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645?resourceVersion=id%3A338480" } }, "attributes": { "drupal_internal__nid": 61, "drupal_internal__vid": 338480, "langcode": "en", "revision_timestamp": "2019-06-03T18:39:40+00:00", "revision_log": "Bulk operation publish revision", "status": true, "title": "MyVA411 main information line:", "created": "2019-01-28T20:48:53+00:00", "changed": "2020-10-30T14:58:18+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": { "alias": "/va-central-office/myva411-main-information-line", "pid": 199, "langcode": "en" }, "field_link": { "uri": "tel:1-800-698-2411", "title": "", "options": [] }, "field_page_last_built": "2021-10-01T09:42:20-04:00", "field_phone_number": "800-698-2411" }, "relationships": { "node_type": { "data": { "type": "node_type--node_type", "id": "27533ffc-851f-4edc-8465-518ea2414b27" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/node_type?resourceVersion=id%3A338480" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/node_type?resourceVersion=id%3A338480" } } }, "revision_uid": { "data": { "type": "user--user", "id": "e62ded06-1de9-4617-bd70-595036edc7ee" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/revision_uid?resourceVersion=id%3A338480" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/revision_uid?resourceVersion=id%3A338480" } } }, "uid": { "data": { "type": "user--user", "id": "b02c2ff5-dfe1-4542-beec-3fd410a3f267" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/uid?resourceVersion=id%3A338480" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/uid?resourceVersion=id%3A338480" } } }, "field_administration": { "data": { "type": "taxonomy_term--administration", "id": "2c331a6d-b525-4f0c-8bea-4ecde41c7ef0" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/field_administration?resourceVersion=id%3A338480" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/field_administration?resourceVersion=id%3A338480" } } }, "field_office": { "data": { "type": "node--office", "id": "c715d441-b6cb-4067-92eb-0650e97b7d62" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/field_office?resourceVersion=id%3A338480" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645/relationships/field_office?resourceVersion=id%3A338480" } } } } } ], "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3?include=answer%2Calert.alert_content.content%2Cbuttons%2Ctags.audience_beneficiares%2Crelated_information%2Cbenefit_hubs%2Ccontact_information.contact_default" } } } ```jsonapi_extras
module provides configuration to slightly modify the out of the JSON provided by Drupal core. The overrides do not change the overall structure of the data. It only modify field names and possible values. The overall structurt still complies with the JSON:API specification. In my opinion, the nature of structure content in Drupal is difficult to understand in the included
section of the API response. The jsonapi_extras
module does nothing to improve related enties.jsonapi_inclues
module heavily overrides the structure of the outputted JSON. The outputted JSON may not comply with the JSON:API specification. The related enties are easier to understanding the API response when using the jsonapi_include
. There are also compatibility issue with the jsonapi_include
and jsonapi_extras
. The jsonapi_include
module does not respect the nested entries settings for jsonapi_extras
"enhancers". This leads to an inconsistent JSON response if the same entity is on the top level and a nested level.I can not recommend using jsonapi_includes
at this time due to the variance from the JSON:API specification.
A product based API is a custom level of abstraction on top of the Drupal JSON:API. In this POC, an API was developed using the jsonapi_resources module. This module allows for definition of custom JSON:API endponts.
The custom code is here: https://github.com/department-of-veterans-affairs/va.gov-cms/blob/52ab28a6625c45176748b10b4b08fd97004a44d5/docroot/modules/custom/va_gov_api/src/Resource/QandA.php.
The code is live on tugboat here: https://cms-tjbeixkzi81nzxfummlz5euagx3aazdk.ci.cms.va.gov/jsonapi/resource/qa?item-path=/resources/how-do-i-change-my-name-in-my-deers-record/
The API response from the product based API call is smaller and easier to understand then either the Core or Contrib based JSON:API.
All of the data needed to build the page is a key:value
based format. Front end developers do not need to understand the structure of Drupal to get content to build a page. The only url paramater needed by a front end developer is the current url. This example produces all of the data needed to build the URL. This also allow the most of the business logic to live in the API.
This solution also provides the most flexibility in the data returned by the API. When developing using the jsonapi_resources
module I found it difficult to us many of the core functionality including the 'include' functionality.
After implementing the 3 methods in Drupal, my recommendation is as follows.
jsonapi_extras
contrib module) to configure the JSON:API to require less Drupal knowledge but also keep compatibility with the JSON:API specPR with code changes: https://github.com/department-of-veterans-affairs/va.gov-cms/pull/6557
@timcosgrove to spin off incomplete ACs into a new ticket for milestone 43 and reclose this ticket.
I moved the research to https://vfs.atlassian.net/wiki/spaces/PCMS/pages/1937932334/Implementing+APIs+in+Drupal
Description
Create a Drupal API that exposes a JSON:API focused on a product rather than an entity.
Use the OpenAPI Spec from https://github.com/department-of-veterans-affairs/va.gov-cms/issues/6500.
See https://github.com/department-of-veterans-affairs/va.gov-team/blob/master/platform/cms/public-content-api/architecture.md#content-api for architecture diagram.
Implementation
jsonapi_resources
module creates a framework for custom endpoint to be added to JSON:API.jsonrpc
module adds https://www.jsonrpc.org/ to Drupal JSON:APIjsonapi_include
module addincludes
to the Drupal JSON:API. This allows for related entities to be pulled in a single API request.jsonapi_extras
module does a lot to unDrupalize the API output as much as possible within the constraints of Drupal entities.jsonapi_extras
andjsonapi_include
could be used to to provide better URLs likeevents
instead ofnode--events
. Then default URL params likeinclude=field_main_content
can be added to automatically add the related content. Thejsonapi_extras
module also allows for fields to be renamed or not returned in the API at all. Another feature ofjsonapi_extras
is the ability to add field levelEnhancers
. These enhancers are text and format changes.Acceptance Criteria
Follow-up work documented