{ "opencollection": "1.0.0", "info": { "name": "Drupal JSON: Comments Nodes API", "version": "1.1" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Nodes", "type": "folder" }, "items": [ { "info": { "name": "Get a node", "type": "http" }, "http": { "method": "GET", "url": "https://example.com/jsonapi/node/:id", "headers": [ { "name": "Accept", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "The numeric ID of the entity." } ] }, "docs": "Retrieves a single content node entity by its numeric ID. The response format depends on the Accept header supplied: JSON, HAL+JSON, or XML. Returns the node's fields, metadata, and any configured display output." }, { "info": { "name": "Update a node", "type": "http" }, "http": { "method": "PATCH", "url": "https://example.com/jsonapi/node/:id", "headers": [ { "name": "Content-Type", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "The numeric ID of the entity." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing content node entity by its numeric ID. Only the fields included in the request body are modified. The caller must have edit permissions for the target node type. Requires authentication." }, { "info": { "name": "Delete a node", "type": "http" }, "http": { "method": "DELETE", "url": "https://example.com/jsonapi/node/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The numeric ID of the entity." } ] }, "docs": "Permanently deletes a content node entity by its numeric ID. The caller must have delete permissions for the target node type. This operation cannot be undone. Requires authentication." }, { "info": { "name": "Create a node", "type": "http" }, "http": { "method": "POST", "url": "https://example.com/jsonapi/node", "headers": [ { "name": "Content-Type", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new content node entity. The request body must include the content type (bundle), title, and any required fields. The caller must have create permissions for the specified node type. Requires authentication." } ] } ], "bundled": true }