hello-world-api

[GET] https://mmouhib.github.io/hello-world-api/src/hw.json

Request in Js

const Http = new XMLHttpRequest();
const url = 'https://mmouhib.github.io/hello-world-api/src/hw.json';
Http.open('GET', url);
Http.send();

Http.onreadystatechange = (e) => {
  ob = JSON.parse(Http.responseText);
};

Sample Response

{
	"lang": "C#",
	"hw": [
		"class HelloWorld",
		"{",
		"    static void Main()",
		"    {",
		"        System.Console.WriteLine(\"Hello, World!\");",
		"    }",
		"}"
	],
	"release_year": "2000"
}

©