Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 791 Bytes

File metadata and controls

55 lines (37 loc) · 791 Bytes

CLASS

Restler

Contents

  • Properties
    • encoder
    • decoder
    • errorParser
    • header
    • levelOfLogDetails
  • Methods
    • init(baseURL:encoder:decoder:)
    • get(_:)
    • post(_:)
    • put(_:)
    • patch(_:)
    • delete(_:)
    • head(_:)

Class for making requests to the API

Properties

encoder

decoder

errorParser

header

levelOfLogDetails

Methods

init(baseURL:encoder:decoder:)

Default initializer.

  • Parameters:
    • baseURL: Base for endpoints calls.
    • encoder: Encoder used for encoding requests' body.
    • decoder: Decoder used for decoding response's data to expected object.

get(_:)

post(_:)

put(_:)

patch(_:)

delete(_:)

head(_:)