Skip to content

Commit

Permalink
updated resource_form.html
Browse files Browse the repository at this point in the history
When the query API was entered in the following form as shown below on CKAN, the result was not displayed

1) /v1/queryContext
2) /v1/contextEntities

Orion can handle both uppercase and lowercase letters(queryContext, contextEntities), but NGSI view can handle in lowercase letters only.
NGSI view compares API names in all lowercase letters(querycontext, contextentities).
  • Loading branch information
iamarnavgarg authored Aug 31, 2018
1 parent 77cdd2b commit 94e7b7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h3 class="ngsiview-input hidden">NGSI Extra</h3>
}
}

if (url.pathname.indexOf('/v1/queryContext') !== -1) {
if (url.pathname.toLowerCase().indexOf('/v1/querycontext') !== -1) {
$('.ngsiview-v1').removeClass('hidden');
} else {
$('.ngsiview-v1').addClass('hidden');
Expand Down

0 comments on commit 94e7b7a

Please sign in to comment.