API for personal testing and prototyping

Get selected Company

Get response ..

        public static async Task GetCompany(string Id)
            var response = "";
            HttpClient client = new HttpClient();
            client.DefaultRequestHeaders.Add("X-API-KEY", "xxxx-xxxxx-xxx-x");
            HttpResponseMessage result = await client.GetAsync("http://www.devida.se/api/Company/" + Id);
            if (result.IsSuccessStatusCode)
                response = await result.Content.ReadAsStringAsync();
            return response;

And the call ...

            Company oComp = new Company();
            var t = Task.Run(() => GetCompany("5564943297"));
            oComp = JsonConvert.DeserializeObject(t.Result);
            if (oComp != null)
                litJson.Text = JsonConvert.SerializeObject(oComp, Newtonsoft.Json.Formatting.Indented, JsonSettings);

The result

No result to display

Requests: 11

Free online REST API

Are you looking for a free online REST API? I recommend that you take a closer look at JsonPlaceHolder. A free online REST API that you can use whenever you need some fake data

Take me to PlaceHolder