<commit_before><%@ include file="../../../../includes.jspf"%>

<%--
  ~ Copyright 2015 <NAME>
  ~  
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~  
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  --%>

<c:url var="rest_mock_response_update_url"  value="/web/rest/project/${restProjectId}/application/${restApplicationId}/resource/${restMethodId}/method/${restMethod.id}" />
<div class="content-top">
    <h1><spring:message code="rest.restmethod.header.method" arguments="${restMethod.name}"/></h1>
    <div align="right">
        <sec:authorize access="hasRole('ADMIN') or hasRole('MODIFIER')">
            <a class="button-success pure-button" href="<c:url value="/web/rest/project/${restProjectId}/application/${restApplicationId}/resource/${restResourceId}/method/${restMethod.id}/update"/>"><i class="fa fa-file"></i> <span><spring:message code="rest.restmethod.button.update"/></span></a>
            <a class="button-error pure-button" href="<c:url value="/web/rest/project/${restProjectId}/application/${restApplicationId}/resource/${restResourceId}/method/${restMethod.id}/delete"/>"><i class="fa fa-trash"></i> <span><spring:message code="rest.restmethod.button.delete"/></span></a>
            <a class="button-secondary pure-button" href="<c:url value="/web/rest/project/${restProjectId}/application/${restApplicationId}/resource/${restResourceId}/method/${restMethod.id}/create/response"/>"><i class="fa fa-file"></i> <span><spring:message code="rest.restmethod.button.createresponse"/></span></a>
        </sec:authorize>
    </div>
</div>
<div class="content-summary">
    <table class="formTable">
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.name"/></label></td>
            <td class="column2"><label path="name">${restMethod.name}</label></td>
        </tr>
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.methodtype"/></label></td>
            <td class="column2"><label path="name">${restMethod.restMethodType}</label></td>
        </tr>
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.methodstatus"/></label></td>
            <td class="column2"><label path="name">${restMethod.restMethodStatus}</label></td>
        </tr>
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.address"/></label></td>
            <td class="column2"><label path="name">${restMethod.invokeAddress}</label></td>
        </tr>
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.restResponsestrategy"/></label></td><commit_msg>Resolved the invalid link when deleting multiple mocked response for a REST method<commit_after><%@ include file="../../../../includes.jspf"%>

<%--
  ~ Copyright 2015 <NAME>
  ~  
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~  
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  --%>

<c:url var="rest_mock_response_update_url"  value="/web/rest/project/${restProjectId}/application/${restApplicationId}/resource/${restResourceId}/method/${restMethod.id}" />
<div class="content-top">
    <h1><spring:message code="rest.restmethod.header.method" arguments="${restMethod.name}"/></h1>
    <div align="right">
        <sec:authorize access="hasRole('ADMIN') or hasRole('MODIFIER')">
            <a class="button-success pure-button" href="<c:url value="/web/rest/project/${restProjectId}/application/${restApplicationId}/resource/${restResourceId}/method/${restMethod.id}/update"/>"><i class="fa fa-file"></i> <span><spring:message code="rest.restmethod.button.update"/></span></a>
            <a class="button-error pure-button" href="<c:url value="/web/rest/project/${restProjectId}/application/${restApplicationId}/resource/${restResourceId}/method/${restMethod.id}/delete"/>"><i class="fa fa-trash"></i> <span><spring:message code="rest.restmethod.button.delete"/></span></a>
            <a class="button-secondary pure-button" href="<c:url value="/web/rest/project/${restProjectId}/application/${restApplicationId}/resource/${restResourceId}/method/${restMethod.id}/create/response"/>"><i class="fa fa-file"></i> <span><spring:message code="rest.restmethod.button.createresponse"/></span></a>
        </sec:authorize>
    </div>
</div>
<div class="content-summary">
    <table class="formTable">
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.name"/></label></td>
            <td class="column2"><label path="name">${restMethod.name}</label></td>
        </tr>
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.methodtype"/></label></td>
            <td class="column2"><label path="name">${restMethod.restMethodType}</label></td>
        </tr>
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.methodstatus"/></label></td>
            <td class="column2"><label path="name">${restMethod.restMethodStatus}</label></td>
        </tr>
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.address"/></label></td>
            <td class="column2"><label path="name">${restMethod.invokeAddress}</label></td>
        </tr>
        <tr>
            <td class="column1"><label path="name"><spring:message code="rest.restmethod.label.restResponsestrategy"/></label></td>
{'fraction_non_alphanumeric': 0.18857408267533673, 'fraction_numerical': 0.005883263663105744, 'mean_word_length': 3.988416988416988, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 181, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '265533', 'n_tokens_mistral': 1866, 'n_tokens_neox': 1881, 'n_words': 357}