httpMethod property
HTTP method to use for this endpoint.
Implementation
@override
EndpointHTTPType get httpMethod {
switch (this) {
case Endpoint.posts:
return EndpointHTTPType.get;
case Endpoint.addPost:
return EndpointHTTPType.post;
case Endpoint.postsId:
return EndpointHTTPType.put;
case Endpoint.deletePostId:
return EndpointHTTPType.delete;
}
}