department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
97 stars 69 forks source link

Server Side Product API POC #6491

Closed indytechcook closed 2 years ago

indytechcook commented 3 years ago

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

Acceptance Criteria

Follow-up work documented

jefflbrauer commented 3 years ago

Hey team! Please add your planning poker estimate with ZenHub @indytechcook @timcosgrove @ElijahLynn @ndouglas @olivereri

indytechcook commented 2 years ago

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

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&nbsp;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&nbsp;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"
},
indytechcook commented 2 years ago

There are 3 different levels of API Design that we considering in looking the JSON:API from Drupal

image

Core Drupal JSON:API

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": []
}
Response of the original request ``` { "jsonapi": { "version": "1.0", "meta": { "links": { "self": { "href": "http://jsonapi.org/format/1.0/" } } } }, "data": { "type": "node--q_a", "id": "b86d8217-16bf-4971-8b51-dd70c8d3e1c3", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3?resourceVersion=id%3A557381" } }, "attributes": { "drupal_internal__nid": 16009, "drupal_internal__vid": 557381, "langcode": "en", "revision_timestamp": "2021-10-06T13:39:34+00:00", "revision_log": null, "status": true, "title": "How do I change my name in my DEERS record?", "created": "2021-02-08T21:57:50+00:00", "changed": "2021-10-06T13:39:34+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": { "alias": "/resources/how-do-i-change-my-name-in-my-deers-record", "pid": 18567, "langcode": "en" }, "field_standalone_page": true }, "relationships": { "node_type": { "data": { "type": "node_type--node_type", "id": "e1c04503-bcc8-4285-b2be-fa27af3634e4" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/node_type?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/node_type?resourceVersion=id%3A557381" } } }, "revision_uid": { "data": { "type": "user--user", "id": "b3c26f80-518a-4653-839b-50eca0d0fc00" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/revision_uid?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/revision_uid?resourceVersion=id%3A557381" } } }, "uid": { "data": { "type": "user--user", "id": "e2851f34-b8bf-4bc0-8187-2c632a40578f" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/uid?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/uid?resourceVersion=id%3A557381" } } }, "field_administration": { "data": { "type": "taxonomy_term--administration", "id": "40ef8d64-fa92-41b6-88c0-4d85dc24e191" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_administration?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_administration?resourceVersion=id%3A557381" } } }, "field_alert_single": { "data": { "type": "paragraph--alert_single", "id": "54f804c9-a89b-48c8-8ce7-63e6d1499e46", "meta": { "target_revision_id": 447318 } }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_alert_single?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_alert_single?resourceVersion=id%3A557381" } } }, "field_answer": { "data": { "type": "paragraph--rich_text_char_limit_1000", "id": "92e7e2af-edee-4869-a975-446a5c6d3f8d", "meta": { "target_revision_id": 447319 } }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_answer?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_answer?resourceVersion=id%3A557381" } } }, "field_buttons": { "data": [ { "type": "paragraph--button", "id": "26fc6b3e-3063-4459-9339-1b7c8156eb92", "meta": { "target_revision_id": 410443 } }, { "type": "paragraph--button", "id": "2bac7c0a-6578-40e8-b75c-3e7f229cee14", "meta": { "target_revision_id": 410444 } } ], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_buttons?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_buttons?resourceVersion=id%3A557381" } } }, "field_contact_information": { "data": { "type": "paragraph--contact_information", "id": "41061f66-e861-4468-8c01-e18ef9717d43", "meta": { "target_revision_id": 447320 } }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_contact_information?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_contact_information?resourceVersion=id%3A557381" } } }, "field_other_categories": { "data": [ { "type": "taxonomy_term--lc_categories", "id": "593d7523-f562-442a-a940-f81956da5e96" }, { "type": "taxonomy_term--lc_categories", "id": "9588df79-970f-49db-a40c-61672ef8deec" }, { "type": "taxonomy_term--lc_categories", "id": "4efc1792-24d7-4328-b121-d7e6f70daacc" }, { "type": "taxonomy_term--lc_categories", "id": "5414620f-a6bd-4e05-bafb-c8efde0e3fea" } ], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_other_categories?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_other_categories?resourceVersion=id%3A557381" } } }, "field_primary_category": { "data": { "type": "taxonomy_term--lc_categories", "id": "3f79ad6d-7146-464c-9f6a-c3546a90d9a7" }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_primary_category?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_primary_category?resourceVersion=id%3A557381" } } }, "field_related_benefit_hubs": { "data": [ { "type": "node--landing_page", "id": "be5ce8bb-48af-4ac0-bf45-124081bb3dcb" } ], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_related_benefit_hubs?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_related_benefit_hubs?resourceVersion=id%3A557381" } } }, "field_related_information": { "data": [ { "type": "paragraph--link_teaser", "id": "e800c299-d555-42da-83e4-301126f09fcf", "meta": { "target_revision_id": 410446 } }, { "type": "paragraph--link_teaser", "id": "6af4b68b-c18a-4ec8-8598-6c5348aaa349", "meta": { "target_revision_id": 410447 } }, { "type": "paragraph--link_teaser", "id": "8b4e3067-333d-4739-9682-9ab191fe7ad1", "meta": { "target_revision_id": 410448 } } ], "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_related_information?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_related_information?resourceVersion=id%3A557381" } } }, "field_tags": { "data": { "type": "paragraph--audience_topics", "id": "53876e46-b12c-4a68-ba8e-a0c3f82b4ded", "meta": { "target_revision_id": 447321 } }, "links": { "related": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/field_tags?resourceVersion=id%3A557381" }, "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/node/q_a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/field_tags?resourceVersion=id%3A557381" } } } } }, "included": [ { "type": "paragraph--rich_text_char_limit_1000", "id": "92e7e2af-edee-4869-a975-446a5c6d3f8d", "links": { "self": { "href": "https://master-oya4jcwmo4fcrz3qwfjalf4fxaltbfvz.demo.cms.va.gov/jsonapi/paragraph/rich_text_char_limit_1000/92e7e2af-edee-4869-a975-446a5c6d3f8d" } }, "attributes": { "drupal_internal__id": 28826, "drupal_internal__revision_id": 447319, "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, "field_wysiwyg": { "value": "

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\n

Call 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\n

If 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\n

Note: 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.

\n

Call 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.

\n

If 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.

\n

Note: 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.

image

To get the label "All Veterans":

Include objects for `field_tags.field_audience_beneficiares` ``` { "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" } } } } } ```

This example shows the knowledge necessary for a front-end Engineer to pull data for a Q&A page.

Flattened Drupal JSON:API

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&nbsp;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&nbsp;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:

Using the example above for getting the "All Veterans" tag.

Here is the data structure with only `jsonapi_include` enabled **Notice the nesting of entites.** ![image](https://user-images.githubusercontent.com/121603/136284416-cb824744-f293-483e-b501-df08f55d2152.png)
Here is the data structure without `jsonapi_include` **Notice the flat array of objects under `included`** ![image](https://user-images.githubusercontent.com/121603/136284756-8bb60c84-a6e2-4017-a309-01c130cdb106.png)
Here is a highly configured API call and response with `jsonapi_extras` and `jsonapi_include` **API Call:** Here is the API call to get all the content for the page. This includes the full path for links which was not available in the Core Drupal JSON:API. ``` /jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3?jsonapi_include=1&include=answer,alert.alert_content.content,buttons,tags.audience_beneficiares,related_information,benefit_hubs,contact_information.contact_default ``` API Response ``` { "jsonapi": { "version": "1.0", "meta": { "links": { "self": { "href": "http://jsonapi.org/format/1.0/" } } }, "parsed": true }, "data": { "type": "node--q-a", "id": "b86d8217-16bf-4971-8b51-dd70c8d3e1c3", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3?resourceVersion=id%3A522307" } }, "drupal_internal__nid": 16009, "drupal_internal__vid": 522307, "langcode": "en", "revision_timestamp": "2021-08-27T19:29:26+00:00", "revision_log": "Changes reviewed. OK to publish.", "status": true, "title": "How do I change my name in my DEERS record?", "created": "2021-02-08T21:57:50+00:00", "changed": "2021-08-27T19:29:26+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": "/resources/how-do-i-change-my-name-in-my-deers-record", "standalone_page_enabled": true, "node_type": { "type": "node_type--node_type", "id": "e1c04503-bcc8-4285-b2be-fa27af3634e4" }, "revision_uid": { "type": "user--user", "id": "38daa8d4-3d05-48a3-bb95-a9c75988e382" }, "uid": { "type": "user--user", "id": "e2851f34-b8bf-4bc0-8187-2c632a40578f" }, "section": { "type": "taxonomy_term--administration", "id": "40ef8d64-fa92-41b6-88c0-4d85dc24e191" }, "alert": { "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" } }, "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, "meta": { "target_revision_id": 410441 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "f2e64319-f14b-4bc1-8674-4661358e4242" }, "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": { "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" } }, "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", "meta": { "target_revision_id": 410440 }, "paragraph_type": { "type": "paragraphs_type--paragraphs_type", "id": "3d633fc0-97d6-4087-b709-edfa2d1e6a1e" }, "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" } }, "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.

", "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. 

\n

Call 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.

\n

If 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.

\n

Note: 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" } } } ```
Here is the API response with `jsonapi_extras` only ``` { "jsonapi": { "version": "1.0", "meta": { "links": { "self": { "href": "http://jsonapi.org/format/1.0/" } } } }, "data": { "type": "node--q-a", "id": "b86d8217-16bf-4971-8b51-dd70c8d3e1c3", "links": { "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3?resourceVersion=id%3A522307" } }, "attributes": { "drupal_internal__nid": 16009, "drupal_internal__vid": 522307, "langcode": "en", "revision_timestamp": "2021-08-27T19:29:26+00:00", "revision_log": "Changes reviewed. OK to publish.", "status": true, "title": "How do I change my name in my DEERS record?", "created": "2021-02-08T21:57:50+00:00", "changed": "2021-08-27T19:29:26+00:00", "promote": false, "sticky": false, "default_langcode": true, "revision_translation_affected": true, "moderation_state": "published", "metatag": null, "path": "/resources/how-do-i-change-my-name-in-my-deers-record", "standalone_page_enabled": true }, "relationships": { "node_type": { "data": { "type": "node_type--node_type", "id": "e1c04503-bcc8-4285-b2be-fa27af3634e4" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/node_type?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/node_type?resourceVersion=id%3A522307" } } }, "revision_uid": { "data": { "type": "user--user", "id": "38daa8d4-3d05-48a3-bb95-a9c75988e382" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/revision_uid?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/revision_uid?resourceVersion=id%3A522307" } } }, "uid": { "data": { "type": "user--user", "id": "e2851f34-b8bf-4bc0-8187-2c632a40578f" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/uid?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/uid?resourceVersion=id%3A522307" } } }, "section": { "data": { "type": "taxonomy_term--administration", "id": "40ef8d64-fa92-41b6-88c0-4d85dc24e191" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/section?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/section?resourceVersion=id%3A522307" } } }, "alert": { "data": { "type": "paragraph--alert_single", "id": "54f804c9-a89b-48c8-8ce7-63e6d1499e46", "meta": { "target_revision_id": 410441 } }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/alert?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/alert?resourceVersion=id%3A522307" } } }, "answer": { "data": { "type": "paragraph--rich_text", "id": "92e7e2af-edee-4869-a975-446a5c6d3f8d", "meta": { "target_revision_id": 410442 } }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/answer?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/answer?resourceVersion=id%3A522307" } } }, "buttons": { "data": [ { "type": "paragraph--button", "id": "26fc6b3e-3063-4459-9339-1b7c8156eb92", "meta": { "target_revision_id": 410443 } }, { "type": "paragraph--button", "id": "2bac7c0a-6578-40e8-b75c-3e7f229cee14", "meta": { "target_revision_id": 410444 } } ], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/buttons?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/buttons?resourceVersion=id%3A522307" } } }, "contact_information": { "data": { "type": "paragraph--contact_information", "id": "41061f66-e861-4468-8c01-e18ef9717d43", "meta": { "target_revision_id": 410445 } }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/contact_information?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/contact_information?resourceVersion=id%3A522307" } } }, "other_categories": { "data": [ { "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" } ], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/other_categories?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/other_categories?resourceVersion=id%3A522307" } } }, "primary_category": { "data": { "type": "taxonomy_term--resource_support", "id": "3f79ad6d-7146-464c-9f6a-c3546a90d9a7" }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/primary_category?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/primary_category?resourceVersion=id%3A522307" } } }, "benefit_hubs": { "data": [ { "type": "node--landing_page", "id": "be5ce8bb-48af-4ac0-bf45-124081bb3dcb" } ], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/benefit_hubs?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/benefit_hubs?resourceVersion=id%3A522307" } } }, "related_information": { "data": [ { "type": "paragraph--link_teaser", "id": "e800c299-d555-42da-83e4-301126f09fcf", "meta": { "target_revision_id": 410446 } }, { "type": "paragraph--link_teaser", "id": "6af4b68b-c18a-4ec8-8598-6c5348aaa349", "meta": { "target_revision_id": 410447 } }, { "type": "paragraph--link_teaser", "id": "8b4e3067-333d-4739-9682-9ab191fe7ad1", "meta": { "target_revision_id": 410448 } } ], "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/related_information?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/related_information?resourceVersion=id%3A522307" } } }, "tags": { "data": { "type": "paragraph--audience_topics", "id": "53876e46-b12c-4a68-ba8e-a0c3f82b4ded", "meta": { "target_revision_id": 410449 } }, "links": { "related": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/tags?resourceVersion=id%3A522307" }, "self": { "href": "http://va-gov-cms.lndo.site/jsonapi/node/q-a/b86d8217-16bf-4971-8b51-dd70c8d3e1c3/relationships/tags?resourceVersion=id%3A522307" } } } } }, "included": [ { "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" } }, "attributes": { "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. 

\n

Call 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.

\n

If 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.

\n

Note: 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" } } } ```

Summary of JSON:API Contrib modules.

I can not recommend using jsonapi_includes at this time due to the variance from the JSON:API specification.

Product Based API

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/

API Call and Respose from Product API API Call: ``` https://cms-tjbeixkzi81nzxfummlz5euagx3aazdk.ci.cms.va.gov/jsonapi/resource/qa?item-path=/resources/how-do-i-change-my-name-in-my-deers-record/ ``` Response: ``` { "jsonapi": { "version": "1.0", "meta": { "links": { "self": { "href": "http:\/\/jsonapi.org\/format\/1.0\/" } } } }, "data": { "type": "node--q-a", "id": "b86d8217-16bf-4971-8b51-dd70c8d3e1c3", "attributes": { "nid": "16009", "uuid": "b86d8217-16bf-4971-8b51-dd70c8d3e1c3", "langcode": "en", "status": true, "title": "How do I change my name in my DEERS record?", "moderation_state": "published", "path": "\/resources\/how-do-i-change-my-name-in-my-deers-record", "section_name": "Sitewide content team", "answer_text": "\u003Cp\u003EYou\u2019ll need to call the Defense Manpower Data Center (DMDC) support office. They\u2019ll\u00a0tell you\u00a0what documents to provide and what to do next.\u00a0\u003C\/p\u003E\n\u003Cp\u003ECall the DMDC at\u00a0\u003Ca aria-label=\u00228 0 0. 5 3 8. 9 5 5 2.\u0022 href=\u0022tel:+18005389552\u0022\u003E800-538-9552\u003C\/a\u003E. They\u2019re open Monday through Friday, 8:00 a.m. to 8:00 p.m. (closed on federal holidays). If you have hearing loss, call TTY: \u003Ca aria-label=\u0022TTY. 8 6 6. 3 6 3. 2 8 8 3.\u0022 href=\u0022tel:8663632883\u0022\u003E866-363-2883\u003C\/a\u003E.\u003C\/p\u003E\n\u003Cp\u003EIf you\u2019re a Veteran or family member and you\u2019ve changed\u00a0your legal name, you must update your\u00a0name in DEERS. This keeps you eligible for military benefits like TRICARE\u2014and any VA benefits you receive.\u003C\/p\u003E\n\u003Cp\u003E\u003Cstrong\u003ENote:\u003C\/strong\u003E DEERS is the Defense Enrollment Eligibility Reporting System. It\u2019s\u00a0maintained by the Department of Defense.\u003C\/p\u003E\n", "alert_text": "\u003Cp\u003EYour\u00a0information in DEERS must match what\u0027s on file with VA.\u00a0When you change your name in DEERS, your information doesn\u0027t automatically get updated with VA. So you\u2019ll need to contact your VA medical center and each VA program office that you receive direct benefit payments from and ask them to \u003Ca data-entity-substitution=\u0022canonical\u0022 data-entity-type=\u0022node\u0022 data-entity-uuid=\u00226447b735-cf4e-4777-bf52-c7e200c2f7c7\u0022 href=\u0022\/resources\/how-to-change-your-legal-name-on-file-with-va\u0022 title=\u0022How to change your legal name on file with VA\u0022\u003Echange your name on file\u003C\/a\u003E.\u003C\/p\u003E", "links": [ { "button_label": "Update your name on file with VA", "button_link": "\/resources\/how-to-change-your-legal-name-on-file-with-va" }, { "button_label": "Go to DEERS FAQs on milConnect", "button_link": "https:\/\/milconnect.dmdc.osd.mil\/milconnect\/public\/faq\/DEERS" } ] } }, "links": { "self": { "href": "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.

Recommendation

After implementing the 3 methods in Drupal, my recommendation is as follows.

  1. Use Drupal Flattened API (using the jsonapi_extras contrib module) to configure the JSON:API to require less Drupal knowledge but also keep compatibility with the JSON:API spec
  2. Use another API as a proxy / tranformation layer to provide an API which will provides a simple but flexible API for develoeprs.
indytechcook commented 2 years ago

PR with code changes: https://github.com/department-of-veterans-affairs/va.gov-cms/pull/6557

jefflbrauer commented 2 years ago

@timcosgrove to spin off incomplete ACs into a new ticket for milestone 43 and reclose this ticket.

indytechcook commented 2 years ago

I moved the research to https://vfs.atlassian.net/wiki/spaces/PCMS/pages/1937932334/Implementing+APIs+in+Drupal