-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added a button to view an API method’s OpenAPI description. * Added a link to a web page with a method’s documentation, whose address is specified in the OpenAPI description url property. * Added display of default parameter values specified in the OpenAPI description default property. * Added support of the OpenAPI description additionalProperties property. * Improved sending of empty parameter values. * Made the app interface more convenient and fixed found errors. API Explorer v.1.0.5 * Added support for parameters accepting several data types, which can be described in YAML files using oneOf, alllOf, anyOf syntax options. * Improved support for request-sending HTTP methods PUT, PATCH, DELETE. * Restored and improved previously hidden Result schema tab in the request results info area. * Added support for “date/time” type fields. * Added support for sending files as a base64-encoded string. * Improved method descriptions formatting. * Improved display of method call results for methods returning empty contents. * Increased app stability. * Fixed app functioning error in cases when Webasyst framework is installed in a domain subdirectory.
- Loading branch information
Leonix
committed
Jan 31, 2025
1 parent
0155693
commit e2e1553
Showing
36 changed files
with
1,814 additions
and
512 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta charset="x-ua-compatible" content="ie=edge"> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
|
||
<link href="/wa-content/css/wa/wa-2.0.css" rel="stylesheet"> | ||
<link href="/wa-apps/apiexplorer/css/backend.css" rel="stylesheet"> | ||
<script defer="" src="/wa-content/js/fontawesome/fontawesome-all.min.js?v=513"></script> | ||
<script src="/wa-content/js/jquery/jquery-3.6.0.min.js"></script> | ||
<script src="/wa-content/js/jquery-wa/wa.js"></script> | ||
<script> | ||
window.appState = { | ||
"baseUrl": document.location.protocol + '//' + document.location.host + "<{ VITE_APP_BASE_URL }>", | ||
"rootUrl": "<{ VITE_APP_ROOT_URL }>", | ||
"user_id": "1", | ||
"development_mode": "1", | ||
"locale": "<{ VITE_APP_I18N_LOCALE }>", | ||
"centralUrl": "<{ VITE_APP_WA_CENTRAL }>" | ||
}; | ||
</script> | ||
</head> | ||
<body> | ||
<div id="wa"> | ||
<div id="wa-nav"> | ||
<div id="wa-header"></div> | ||
</div> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
wa-apps/apiexplorer/client/src/components/ParameterDescription.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<strong>{{ parameter.name }}</strong> | ||
<em v-if="parameter.is_optional == 1" class="small"> | ||
({{ $t('optional') }}) | ||
</em> | ||
<span v-else class="state-caution"> *</span> | ||
|
||
<span v-if="parameter.description.length <= DESC_LIMIT"> : {{ parameter.description }}</span> | ||
|
||
<span v-if="parameter.description.length > DESC_LIMIT"> | ||
<button v-if="show_description" class="nobutton small" @click="show_description=false">{{ $t('hide') }}</button> | ||
<button v-else class="nobutton small" @click="show_description=true">{{ $t('show') }}</button> | ||
</span> | ||
|
||
<div v-if="parameter.description.length > DESC_LIMIT && show_description" style="white-space: pre-line;">{{ parameter.description }}</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "ParameterDescription", | ||
props: { | ||
parameter: Object | ||
}, | ||
data() { | ||
return { | ||
show_description: false, | ||
DESC_LIMIT: 150 | ||
} | ||
}, | ||
mounted() { | ||
this.show_description = this.parameter.description.length <= this.DESC_LIMIT; | ||
} | ||
} | ||
</script> |
Oops, something went wrong.