diff --git a/.gitignore b/.gitignore index 30c3fe5..e90683d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .openapi-generator .openapi-generator-ignore .idea +ijhttp +ijhttp.zip diff --git a/Apis/HealthApi.http b/Apis/HealthApi.http index a4a027e..5bb7aff 100644 --- a/Apis/HealthApi.http +++ b/Apis/HealthApi.http @@ -3,3 +3,10 @@ ### GET /health # @name healthGet GET http://api.opendota.com/api/health + + +> {% + client.test("Request executed successfully", function() { + client.assert(response.status === 200, "Response status is not 200"); + }); +%} \ No newline at end of file diff --git a/Apis/HeroesApi.http b/Apis/HeroesApi.http index 2ad229d..449fb3e 100644 --- a/Apis/HeroesApi.http +++ b/Apis/HeroesApi.http @@ -4,6 +4,14 @@ # @name heroesGet GET http://api.opendota.com/api/heroes + +> {% + client.test("Request executed successfully", function() { + // client.assert(response.status === 200, "Response status is not 200"); + client.assert(response.body.length == 126, "DOTA 2 currently has 136 heroes"); + }); +%} + ### GET /heroes/{hero_id}/durations # @name heroesHeroIdDurationsGet GET http://api.opendota.com/api/heroes/{{hero_id}}/durations