Sample API

Tools

Imagem de capa

Sample API

This page will contains rest service. Thease are Sample Online REST API for Testing and Prototyping of sample application which are using rest call to display listing and crud features.

User Sample API http://ioshelp.tk/api/user.json Method: GET Type: JSON

Employee Sample API http://ioshelp.tk/api/dummy.json Method: GET Type: JSON

User Sample API http://ioshelp.tk/api/currency.json Method: GET Type: JSON

JSON Formatter & Validator The JSON Formatter & Validator helps debugging JSON data by formatting and validating JSON data so that it can easily be read by human beings https://jsonformatter.curiousconcept.com/

func parseJSON () {
  
    let url = URL(string: "https://api.myjson.com/bins/vi56v")
    let task = URLSession.shared.dataTask(with: url!) {(data, response, error ) in

    guard error == nil else {
        print("returned error")
        return
    }

    if error != nil {

    }else {
      print("returned error")
    }

    guard let content = data else {

        print("No data")
        return
    }

    guard let json = (try? JSONSerialization.jsonObject(with: content, options: JSONSerialization.ReadingOptions.mutableContainers)) as? [String: Any] else {
            print("Not containing JSON")
            return
    }

  }

}

Want to see something else added? Open an issue.