Skip to main content

API Summary

API Summary
Some description.
Read More

Overview

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

Example Code

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

<SummaryAPI
title={'API Summary'}
description={'Some description.'}
endpoints={[
{
category: 'Category A',
items: [
{
endpoint: '/',
method: 'get',
title: 'Some Endpoint',
},
],
},
{
category: 'Category B',
items: [
{
endpoint: '/',
method: 'post',
title: 'Other Endpoint',
},
{
endpoint: '/',
method: 'delete',
title: 'Another Endpoint',
},
],
},
]}
moreInfo={'./'}
/>