MCPcopy
hub / github.com/rapi-doc/RapiDoc / render

Method render

src/components/api-request.js:207–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205
206 /* eslint-disable indent */
207 render() {
208 return html`
209 <div class="col regular-font request-panel ${'read focused'.includes(this.renderStyle) || this.callback === 'true' ? 'read-mode' : 'view-mode'}">
210 <div class=" ${this.callback === 'true' ? 'tiny-title' : 'req-res-title'} ">
211 ${this.callback === 'true' ? 'CALLBACK REQUEST' : 'REQUEST'}
212 </div>
213 <div>
214 ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('path'))}
215 ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('query'))}
216 ${this.requestBodyTemplate()}
217 ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('header'))}
218 ${guard([this.method, this.path, this.allowTry, this.parameters, this.activeParameterSchemaTabs], () => this.inputParametersTemplate('cookie'))}
219 ${this.allowTry === 'false' ? '' : html`${this.apiCallTemplate()}`}
220 </div>
221 </div>
222 `;
223 }
224
225 async updated() {
226 if (this.showCurlBeforeTry === 'true') {

Callers

nothing calls this directly

Calls 5

requestBodyTemplateMethod · 0.95
apiCallTemplateMethod · 0.95
htmlFunction · 0.85
includesMethod · 0.45

Tested by

no test coverage detected