ParameterTable

Domain

Table displaying API parameters with location (path/query/header/cookie), type, required flag, and description.

Mixed parameter locations

Preview
NameInTypeRequiredDescription
userId
pathstring (uuid)required
Unique identifier of the user
page
queryintegeroptional
Page number (1-based)e.g. 1
pageSize
queryintegeroptional
Results per pagee.g. 20
Authorization
headerstringrequired
Bearer token
roledeprecated
querystringoptional
Filter by role
admineditorviewer
Code
<ParameterTable parameters={[
  { parameterId: 'p1', name: 'userId', in: 'path', required: true, schema: { type: 'string', format: 'uuid' } },
  { parameterId: 'p2', name: 'page', in: 'query', schema: { type: 'integer', default: 1 } },
  { parameterId: 'p3', name: 'Authorization', in: 'header', required: true, schema: { type: 'string' } },
  { parameterId: 'p4', name: 'role', in: 'query', schema: { type: 'string', enum: ['admin','editor','viewer'] }, deprecated: true },
]} />

Path params only

Preview
NameInTypeRequiredDescription
orgId
pathstring (uuid)required
Organisation ID
projectId
pathstring (uuid)required
Project ID
Code
<ParameterTable parameters={[
  { parameterId: 'pp1', name: 'orgId', in: 'path', required: true, schema: { type: 'string', format: 'uuid' } },
  { parameterId: 'pp2', name: 'projectId', in: 'path', required: true, schema: { type: 'string', format: 'uuid' } },
]} />
Sourcemodules/domains/api-doc/ParameterTable.tsx