randydev commited on
Commit
494cdab
·
verified ·
1 Parent(s): 168994a

Update plugins/gempa.js

Browse files
Files changed (1) hide show
  1. plugins/gempa.js +21 -1
plugins/gempa.js CHANGED
@@ -7,7 +7,8 @@ const GempaRoutes = express.Router();
7
  * @swagger
8
  * /api/v1/gempa-bumi:
9
  * get:
10
- * summary: gempa bumi Random
 
11
  * - in: header
12
  * name: x-api-key
13
  * required: true
@@ -17,6 +18,25 @@ const GempaRoutes = express.Router();
17
  * responses:
18
  * 200:
19
  * description: Success
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  */
21
  GempaRoutes.get('/api/v1/gempa-bumi', authenticateApiKey, apiLimiter, async (req, res) => {
22
  try {
 
7
  * @swagger
8
  * /api/v1/gempa-bumi:
9
  * get:
10
+ * summary: Get random earthquake data
11
+ * parameters:
12
  * - in: header
13
  * name: x-api-key
14
  * required: true
 
18
  * responses:
19
  * 200:
20
  * description: Success
21
+ * content:
22
+ * application/json:
23
+ * schema:
24
+ * type: object
25
+ * properties:
26
+ * data:
27
+ * type: array
28
+ * items:
29
+ * type: object
30
+ * properties:
31
+ * id:
32
+ * type: string
33
+ * magnitude:
34
+ * type: number
35
+ * location:
36
+ * type: string
37
+ * time:
38
+ * type: string
39
+ * format: date-time
40
  */
41
  GempaRoutes.get('/api/v1/gempa-bumi', authenticateApiKey, apiLimiter, async (req, res) => {
42
  try {