Updated self documentation

This commit is contained in:
Jocelyn Fiat
2012-11-23 15:52:59 +01:00
parent d8b6f80411
commit dcb630ce98

View File

@@ -119,14 +119,12 @@ feature {WSF_RESPONSE} -- Output
l_description.append ("</ul>") l_description.append ("</ul>")
end end
if attached resource as l_resource and then attached request.path_info as l_path then if doc_url_supported and then attached {WSF_STRING} request.query_parameter ("api") as l_api then
if l_path.starts_with (l_resource) then l_api_resource := l_api.value
l_api_resource := l_path.substring (l_resource.count + 1, l_path.count)
if l_api_resource.is_empty then if l_api_resource.is_empty then
l_api_resource := Void l_api_resource := Void
end end
end end
end
if l_api_resource /= Void then if l_api_resource /= Void then
if doc_url_supported then if doc_url_supported then
@@ -252,11 +250,9 @@ feature {NONE} -- Implementation
doc_url_supported: doc_url_supported doc_url_supported: doc_url_supported
do do
if attached resource as s then if attached resource as s then
Result := request.script_url (s + url_encoder.encoded_string (a_api)) Result := request.script_url (s) + "?api=" + url_encoder.encoded_string (a_api)
elseif attached router.base_url as l_base_url then
Result := request.script_url (l_base_url + url_encoder.encoded_string (a_api))
else else
Result := request.script_url (a_api) Result := request.script_url ("")
end end
end end