Retrieving Drug Article Table of Contents GET
The DynaMedex API GET /content/slugs{slug}/detail/toc endpoint returns the table of contents matching the slug provided. The slug is a required parameter for the endpoint.
Basic Retrieving of the Table of Contents
To Retrieve the Drug Article Table of Contents (example):
Gather the following information for the request:
- An access token. Please see Using the Client Credentials Grant for further information.
- The slug of the article to retrieve.
Request
GET https://apis.ebsco.com/medsapi-dynamedex/v1/content/slugs/drug-monograph/acebutolol/detail/toc
The request above returns the table of contents for the article "/drug-monograph/acebutolol". Many DynaMedex endpoints return slugs in the form of /pubtypeId/articleTitle. The slug can be used, including the lead slash, with this endpoint.
Response
{
"links": [
{
"rel": "self",
"href": "https://apis.ebsco.com/medsapi-dynamedex/v1/content/slugs/drug-monograph/acebutolol/detail/toc"
}
],
"id": "1477",
"title": "ACEBUTOLOL",
"toc": [
{
"title": "Dosing/Administration",
"subsection": [
{
"title": "Adult Dosing",
"sectionId": "adultDosageSection"
},
...
],
...
},
...
]
}
Error Response Codes
The DynaMedex GET drug article table of contents endpoint can return one of the error response codes.
Updated 11 days ago
