• Mauro E. Bender's avatar
    Close #1 - Get a resource item · c1085960
    Mauro E. Bender authored
    Get a resource item by an identifier through the API.
    
    Example: Get the item with id 1 from the "items" resource:
    
    ```swift
    let api = Api( baseURL: <Api URL>, apiPath: "1" )
    api.resource( "items" ).item( 1 ) { ( item: Item ) in
       print( "Got item \(item.id)")
    }
    ```
    c1085960
ApiTests.swift 1.17 KB