HTTPParameters() — supabase Function Reference
Architecture documentation for the HTTPParameters() function in HTTPParameters.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Database/Hooks/HTTPParameters.tsx lines 18–77
export const HTTPParameters = ({ form }: HTTPParametersProps) => {
const {
fields: paramFields,
append: appendParam,
remove: removeParam,
} = useFieldArray({
control: form.control,
name: 'httpParameters',
})
return (
<FormSection
header={<FormSectionLabel className="lg:!col-span-4">HTTP Parameters</FormSectionLabel>}
>
<FormSectionContent loading={false} className="lg:!col-span-8">
<div className="space-y-2">
{paramFields.map((field, index) => (
<div key={field.id} className="flex items-center space-x-2">
<FormField_Shadcn_
control={form.control}
name={`httpParameters.${index}.name`}
render={({ field }) => (
<FormControl_Shadcn_>
<Input_Shadcn_ {...field} className="w-full" placeholder="Parameter name" />
</FormControl_Shadcn_>
)}
/>
<FormField_Shadcn_
control={form.control}
name={`httpParameters.${index}.value`}
render={({ field }) => (
<FormControl_Shadcn_>
<Input_Shadcn_ {...field} className="w-full" placeholder="Parameter value" />
</FormControl_Shadcn_>
)}
/>
<ButtonTooltip
type="text"
className="py-4"
icon={<Trash />}
onClick={() => removeParam(index)}
tooltip={{ content: { side: 'bottom', text: 'Remove parameter' } }}
/>
</div>
))}
<div>
<Button
type="default"
size="tiny"
icon={<Plus />}
onClick={() => appendParam({ id: uuidv4(), name: '', value: '' })}
>
Add a new parameter
</Button>
</div>
</div>
</FormSectionContent>
</FormSection>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free