openapi: 3.0.3 info: title: 'Marvel Kids' description: '' version: 1.0.0 servers: - url: 'https://apidev.erunix.id' paths: /api/fetch: post: summary: 'Fetch user.' description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - Authentication /api/logout: delete: summary: Logout description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string responses: 200: description: '' content: text/plain: schema: type: string example: "{\n \"message\": \"Token dihapus!\",\n}" tags: - Authentication /api/driver-notifications: get: summary: 'Mendapatkan list data Notifikasi Saya.' description: 'Dibagian ini Anda bisa mendapatkan list data Notifikasi Saya.' parameters: - in: query name: search description: 'Mencari data Notifikasi Saya.' example: ... required: false schema: type: string description: 'Mencari data Notifikasi Saya.' example: ... - in: query name: 'page[number]' description: 'Menyesuaikan URI paginator.' example: '1' required: false schema: type: string description: 'Menyesuaikan URI paginator.' example: '1' - in: query name: 'page[size]' description: 'Menyesuaikan jumlah data yang ditampilkan.' example: '2' required: false schema: type: string description: 'Menyesuaikan jumlah data yang ditampilkan.' example: '2' - in: query name: sort description: 'Menyortir data ( key_name / -key_name ), default -created_at.' example: created_at required: false schema: type: string description: 'Menyortir data ( key_name / -key_name ), default -created_at.' example: created_at - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - 'Driver Notification' /api/firebase/device-token: post: summary: 'Memperbaharui device token.' description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string - in: header name: Content-Type description: '' example: application/json schema: type: string responses: 200: description: '' content: text/plain: schema: type: string example: "{\n \"message\": \"Berhasil memperbaharui device token.\",\n}" tags: - Firebase requestBody: required: true content: application/json: schema: type: object properties: device_token: type: string description: 'device token.' example: cSN1fH... required: - device_token /api/geofence/active: get: summary: 'Aktif Geo Fence.' description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - GeoFance /api/geofence/cordinate: post: summary: 'Store current Coordinate.' description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string - in: header name: Content-Type description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - GeoFance requestBody: required: true content: application/json: schema: type: object properties: manifest_id: type: integer description: catatan. example: 1 latitude: type: string description: catatan. example: '3123' longitude: type: string description: catatan. example: '1231' required: - manifest_id - latitude - longitude '/api/geofence/{traffic_monitoring}': post: summary: 'Update Status Geofance to 1.' description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string - in: header name: Content-Type description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - GeoFance requestBody: required: true content: application/json: schema: type: object properties: manifest_id: type: integer description: catatan. example: 1 latitude: type: string description: catatan. example: '3123' longitude: type: string description: catatan. example: '1231' required: - manifest_id - latitude - longitude parameters: - in: path name: traffic_monitoring description: "valid id traffic_monitoring. Defaults to 'id'." example: 1 required: true schema: type: integer '/api/orders/tm/{traffic_monitoring}': post: summary: 'Memperbaharui Trafic Monitoring.' description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string - in: header name: Content-Type description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - 'Order Saya' requestBody: required: true content: application/json: schema: type: object properties: image: type: string description: gambar. example: path... note: type: string description: catatan. example: ... location: type: string description: 'lokasi (lat, long).' example: '31.2467601,29.9020376' required: - note parameters: - in: path name: traffic_monitoring description: "valid id traffic_monitoring. Defaults to 'id'." example: 1 required: true schema: type: integer /api/my-orders: get: summary: 'Mendapatkan list data Order Saya.' description: 'Dibagian ini Anda bisa mendapatkan list data Order Saya.' parameters: - in: query name: search description: 'Mencari data Order Saya.' example: ... required: false schema: type: string description: 'Mencari data Order Saya.' example: ... - in: query name: done description: 'filter berdasarkan order selesai (options : true, false).' example: ... required: false schema: type: string description: 'filter berdasarkan order selesai (options : true, false).' example: ... - in: query name: 'page[number]' description: 'Menyesuaikan URI paginator.' example: '1' required: false schema: type: string description: 'Menyesuaikan URI paginator.' example: '1' - in: query name: 'page[size]' description: 'Menyesuaikan jumlah data yang ditampilkan.' example: '2' required: false schema: type: string description: 'Menyesuaikan jumlah data yang ditampilkan.' example: '2' - in: query name: sort description: 'Menyortir data ( key_name / -key_name ), default -created_at.' example: created_at required: false schema: type: string description: 'Menyortir data ( key_name / -key_name ), default -created_at.' example: created_at - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - 'Order Saya' '/api/my-orders/{manifest_id}': get: summary: 'Mendapatkan Detail Order.' description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - 'Order Saya' parameters: - in: path name: manifest_id description: 'The ID of the manifest.' example: 16 required: true schema: type: integer - in: path name: manifest description: "valid id manifest. Defaults to 'id'." example: 1 required: true schema: type: integer '/api/my-orders/timewindows/{manifest_id}': get: summary: 'Mendapatkan timewindows.' description: '' parameters: - in: header name: Authorization description: '' example: 'Bearer {YOUR_AUTH_KEY}' schema: type: string - in: header name: Accept description: '' example: application/json schema: type: string responses: 401: description: '' content: application/json: schema: type: object example: message: Unauthenticated. properties: message: type: string example: Unauthenticated. tags: - 'Order Saya' parameters: - in: path name: manifest_id description: 'The ID of the manifest.' example: 18 required: true schema: type: integer - in: path name: manifest description: "valid id manifest. Defaults to 'id'." example: 1 required: true schema: type: integer /api/ping: get: summary: 'Ping the server.' description: '' parameters: - in: header name: Accept description: '' example: application/json schema: type: string responses: 200: description: '' content: application/json: schema: type: object example: status: ok timestamp: '2025-06-22T10:40:56.910249Z' host: 127.0.0.1 properties: status: type: string example: ok timestamp: type: string example: '2025-06-22T10:40:56.910249Z' host: type: string example: 127.0.0.1 tags: - Server security: [] tags: - name: Authentication description: "\nAPI endpoints for managing authentication" - name: 'Driver Notification' description: '' - name: Firebase description: '' - name: GeoFance description: '' - name: 'Order Saya' description: '' - name: Server description: '' components: securitySchemes: default: type: http scheme: bearer description: '' security: - default: []