Skip to content

A simple client for fetching data from an api and de-serializing it easily.

License

Notifications You must be signed in to change notification settings

hattan/RestEasy.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestEasy.NET

A simple client for fetching data from an api and de-serializing it easily.

##Example


 public async Task<RottenTomatoApiResult> GetMovies()
        {
            var url = "http://api.rottentomatoes.com/api/public/v1.0/lists/movies/opening.json?apikey=<apikey>";
            var client = new RestClient();
            return await client.GetAsync<RottenTomatoApiResult>(url);
        }
        

Note: In order to use RestEasy.NET you have to create the models based on the results of the api endpoint. In visual studio can do this easily by copying the json/xml result and choosing "paste special" follwed by the kind of data you want to generate classes for.

About

A simple client for fetching data from an api and de-serializing it easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages