This schema may be the input URL query parameters or
HTTP JSON Body.
Example
// An interface that represents the JSON Body schema // for a login method. interfaceUserLoginJsonSchemaextendsApiXRequestInputSchema { readonlyusername: string; readonlypassword: string; }
// An interface that represents the defined URL query parameters // in an endpoint that retrieves books. interfaceFilterBooksUrlQueryParametersextensApiXRequestInputSchema { readonlykeywords: string; // required, must not be undefined readonlytags?: ReadonlyArray<string>; // additional optional tags readonlyauthorName?: string; // additional optional parameter readonlypublicationDateRange?: [Date, Date]; // additional date rate }
An interface to define the schema of a request.
This schema may be the input URL query parameters or HTTP JSON Body.
Example