Skip to main content

API Summary

Collapsible
This is a summary of available endpoints.
General
+
Extra
+
Related
+
Scrollable

Overview

info

The displayed UI components are variants and are for demo purposes only. The normal instances of this UI component can be found in regular documentation.

This componenent is a display themed with a custom color palette. It contains clickable links that redirect to SwaggerHub and other articles on the DOCS site.

Details

CriteriaComponent Meets Criteria
Has hover stylesYes
Has light and dark modeYes
Has brand themingNo

Component Props

Prop NameTypeDescription
titlestringThe title appearing in the component header
descriptionstringThe text appearing before endpoint and item sections
endpointsobjectAn array of objects, where each object contains an array of endpoints and a category name
articlesobjectAn array of entries, where each entry gets a redirect URL

Example Code

import SummaryAPI from '@site/src/elements/SummaryAPI';

<SummaryAPI
title={'Vehicles'}
description={
'This interface allows users to access data collected from connected vehicles.'
}
endpoints={[
{
category: 'Endpoints',
items: [
{
url: '/',
method: 'get',
title: 'List of Vehicles',
},
{
url: '/',
method: 'put',
title: 'Vehicle Details',
},
],
}
]}
articles={[
{
url: '/',
title: 'How to see Vehicles',
},
{
url: '/',
title: 'Using Old Data',
},
]}
/>