munchies
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
munchies
commons
/
com.munchies.commons.infrastructure.adapter
/
API
API
@
Serializable
@
SerialName
(
value
=
"API"
)
abstract
class
API
<
Request
:
JsonEncodable
,
Response
:
WebResponse
<
Result
>
,
Result
,
Success
:
Result
,
Failure
:
Result
>
Members
Constructors
API
Link copied to clipboard
constructor
(
)
Functions
generate
Failure
Link copied to clipboard
abstract
fun
generateFailure
(
reason
:
String
)
:
Failure
generate
Response
Link copied to clipboard
abstract
fun
generateResponse
(
result
:
Result
,
code
:
Int
)
:
Response
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
Request
Link copied to clipboard
abstract
fun
parseRequest
(
json
:
String
)
:
Request
parse
Response
Link copied to clipboard
abstract
fun
parseResponse
(
json
:
String
)
:
Response