munchies
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
munchies
commons
/
com.munchies.commons.infrastructure.adapter
/
SimpleAPI
Simple
API
@
SerialName
(
value
=
"SimpleAPI"
)
abstract
class
SimpleAPI
<
Request
,
Response
>
Members
Constructors
Simple
API
Link copied to clipboard
constructor
(
)
Functions
get
Method
Link copied to clipboard
abstract
fun
getMethod
(
)
:
HttpMethod
get
Path
Link copied to clipboard
abstract
fun
getPath
(
)
:
String
get
Port
Link copied to clipboard
abstract
fun
getPort
(
)
:
Int
get
Required
Auth
Role
Link copied to clipboard
abstract
fun
getRequiredAuthRole
(
)
:
AuthRole
parse
Error
Link copied to clipboard
open
fun
parseError
(
json
:
String
)
:
ErrorResponse
parse
Request
Link copied to clipboard
abstract
fun
parseRequest
(
json
:
String
)
:
Request
parse
Response
Link copied to clipboard
abstract
fun
parseResponse
(
json
:
String
)
:
Response