chore: added new api route

This commit is contained in:
Reinaldy Rafli 2021-07-17 22:07:17 +07:00
parent ccaead16ea
commit 8d0a108436
3 changed files with 14 additions and 5 deletions

View File

@ -84,6 +84,10 @@
"id": {
"title": "Get joke by ID",
"body": "You'll get consistent joke for every call with the same ID."
},
"total": {
"title": "Get total number of jokes",
"body": "...in a form of JSON response."
}
},
"more": "More documentation will soon arrive here..."

View File

@ -84,6 +84,10 @@
"id": {
"title": "Dapatkan joke berdasarkan ID",
"body": "Bapak akan dapat hasil yang konsisten pada setiap request dengan ID yang sama."
},
"total": {
"title": "Dapatkan total jumlah jokes",
"body": "...dalam bentuk JSON response."
}
},
"more": "Dokumentasi lebih lanjut akan segera tiba disini..."

View File

@ -38,12 +38,13 @@
<h2>{$_('api.get.id.title')}</h2>
<p>{$_('api.get.id.body')}</p>
<Codeblock>
GET {env.API_ENDPOINT}/&lcub;id&rcub;
GET {env.API_ENDPOINT}/id/&lcub;id&rcub;
</Codeblock>
<h2>{$_('api.get.total.title')}</h2>
<p>{$_('api.get.total.body')}</p>
<Codeblock>
GET {env.API_ENDPOINT}/total
</Codeblock>
</section>
<section>
<p class="pt-8">{$_('api.more')}</p>
</section>
<style>