src/gen/servers

ServerConfiguration

Represents the configuration of a server including its url template and variable configuration based on the url.
class ServerConfiguration<T extends { [key: string]: string }> implements BaseServerConfiguration 

setVariables

Sets the value of the variables of this server. Variables are included in the `url` of this ServerConfiguration in the form `{variableName}`

Parameters

variableConfiguration a partial variable configuration for the

variables contained in the url
public setVariables(variableConfiguration: Partial<T>) 

makeRequestContext

Creates a new request context for this server using the url with variables replaced with their respective values and the endpoint of the request appended.

Parameters

endpoint the endpoint to be queried on the server

httpMethod httpMethod to be used

public makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext 
Start typing to search the documentation Press ESC to close