apiType method
It gets the correct apiType name in base of the current ApiType
Implementation
String apiType(ApiType apiType) {
switch (apiType) {
case ApiType.POST:
return "POST";
case ApiType.PUT:
return "PUT";
case ApiType.GET:
return "GET";
case ApiType.DELETE:
return "DELETE";
case ApiType.PATCH:
return "PATCH";
case ApiType.HEAD:
return "HEAD";
}
}