Routers

public enum Routers: URLRequestDelegate

Undocumented

  • GET /killSession

    Declaration

    Swift

    case killSession
  • GET /getMyProfiles

    Declaration

    Swift

    case getMyProfiles
  • GET /getActiveProfile

    Declaration

    Swift

    case getActiveProfile
  • POST /changeActiveProfile

    Declaration

    Swift

    case changeActiveProfile([String: AnyObject])
  • GET /getMyEntities

    Declaration

    Swift

    case getMyEntities
  • POST /changeActiveEntities

    Declaration

    Swift

    case changeActiveEntities([String: AnyObject])
  • GET /getFullSession

    Declaration

    Swift

    case getFullSession
  • GET /getGlpiConfig

    Declaration

    Swift

    case getGlpiConfig
  • GET /getMultipleItems

    Declaration

    Swift

    case getMultipleItems
  • POST /:itemtype

    Declaration

    Swift

    case addItems(ItemType, [String: AnyObject])
  • PUT /:itemtype/:id

    Declaration

    Swift

    case updateItems(ItemType, Int?, [String: AnyObject])
  • PUT /lostPassword

    Declaration

    Swift

    case lostPassword([String: AnyObject])
  • get HTTP Method

    Declaration

    Swift

    var method: HTTPMethod
  • build up and return the URL for each endpoint

    Declaration

    Swift

    var path: String
  • build up and return the query for each endpoint

    Declaration

    Swift

    var query: [URLQueryItem]?
  • build up and return the header for each endpoint

    Declaration

    Swift

    var header: [String: String]
  • Returns a URL request or throws if an Error was encountered

    Throws

    An Error if the underlying URLRequest is nil.

    Declaration

    Swift

    public func request() -> URLRequest

    Return Value

    A URL request.