chore: added new api route
This commit is contained in:
parent
ccaead16ea
commit
8d0a108436
|
@ -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..."
|
||||
|
|
|
@ -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..."
|
||||
|
|
|
@ -38,12 +38,13 @@
|
|||
<h2>{$_('api.get.id.title')}</h2>
|
||||
<p>{$_('api.get.id.body')}</p>
|
||||
<Codeblock>
|
||||
GET {env.API_ENDPOINT}/{id}
|
||||
GET {env.API_ENDPOINT}/id/{id}
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue