TemplateClient

class TemplateClient(val templateCode: String, client: RestClient) : RestClient(source)

A REST client for a specific template

Parameters

templateCode

The id of the template

client

The REST client implementation

Constructors

Link copied to clipboard
constructor(templateCode: String, client: RestClient)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun createGuild(): Guild

Create a guild from the template

Link copied to clipboard
open suspend override fun DELETE(majorPath: String, minorPath: String, rateKey: String, block: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
open suspend override fun GET(majorPath: String, minorPath: String, rateKey: String, block: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
suspend fun getTemplate(): Template

Get the server template

Link copied to clipboard
open suspend override fun PATCH(majorPath: String, minorPath: String, rateKey: String, omitNulls: Boolean, block: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
open suspend override fun POST(majorPath: String, minorPath: String, rateKey: String, omitNulls: Boolean, block: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
open suspend override fun PUT(majorPath: String, minorPath: String, rateKey: String, omitNulls: Boolean, block: HttpRequestBuilder.() -> Unit): HttpResponse