RestApiManagerImpl

class RestApiManagerImpl(token: String, yde: YDEImpl, client: OkHttpClient) : RestApiManager(source)

Constructors

Link copied to clipboard
constructor(token: String, yde: YDEImpl, client: OkHttpClient)

Functions

Link copied to clipboard
open override fun addQueryParameter(key: String, value: String): RestApiManager

Adds a query parameters to the request

Link copied to clipboard
open override fun delete(body: RequestBody?, endPoint: EndPoint.IEnumEndpoint, vararg params: String): DeleteRestApi
open fun delete(endPoint: EndPoint.IEnumEndpoint, vararg params: String): DeleteRestApi
open fun delete(body: RequestBody, endPoint: EndPoint.IEnumEndpoint): DeleteRestApi

Deletes something from the API.

Link copied to clipboard
open override fun get(endPoint: EndPoint.IEnumEndpoint, vararg params: String): GetRestApi

Gets a certain endpoint from the API.

Link copied to clipboard
open override fun patch(body: RequestBody, endPoint: EndPoint.IEnumEndpoint, vararg params: String): PatchRestApi
open fun patch(body: RequestBody, endPoint: EndPoint.IEnumEndpoint): PatchRestApi

Patches something from the API.

Link copied to clipboard
open override fun post(body: RequestBody?, endPoint: EndPoint.IEnumEndpoint, vararg params: String): PostRestApi

Posts something to the API.

open fun post(body: RequestBody?, endPoint: EndPoint.IEnumEndpoint): PostRestApi

Pots something to the API.

Link copied to clipboard
open override fun put(body: RequestBody?, endPoint: EndPoint.IEnumEndpoint, vararg params: String): PutRestApi
open fun put(body: RequestBody?, endPoint: EndPoint.IEnumEndpoint): PutRestApi

Puts something to the API.