Files
release11-tools/Frontend/src/components/man/RestMockManComponent.vue
2023-11-15 08:42:39 +01:00

38 lines
1.3 KiB
Vue

<script setup lang="ts">
</script>
<template>
<div class="flex flex-col">
<div class="flex flex-row">
<a href="/rest/mock" class="tool-button">Back to REST Mock</a>
</div>
<div class="dark:text-slate-100">
<h2 class="text-2xl font-bold mt-4 mb-2">Description</h2>
<p><span class="font-medium">REST Mock</span> is a tool allowing to create temporary REST endpoint that allows to test REST clients.</p>
<br>
<p>It's main functions are:</p>
<ul class="list-disc ml-5">
<li>Generating random URL for each user, one per user, with persistence for 24h. {check}</li>
<li>Customizable HTTP response status code</li>
<li>Customizable response body and it's content type</li>
<li>Customizable response headers</li>
<li>History of connections to generated endpoint with ability to look into request method, headers and body</li>
</ul>
<!-- <h2 class="text-2xl font-bold mt-4 mb-2">Technical Nuances</h2> -->
<h2 class="text-2xl font-bold mt-4 mb-2">Example</h2>
<p>Let's say we want to create temporary endpoint that returns code 200 with body:</p>
<div class="p-2 bg-slate-800 rounded-md"><pre>{
"status": "completed",
"warnings": "none"
}</pre></div>
</div>
</div>
</template>
<style scoped></style>