- Getting Started
- Version
- Auth
- User
- Kereta
- Pelanggan
- Gerbong
- Kursi
- Jadwal
- Pembelian Tiket
Find Many Kereta Filter
Developing
GET
/kereta/filter
Maintainer:Muhammad Fadhil Kholaf
Request
Cookie Params
token
string
required
Body Params application/json
asalKeberangkatan
string
required
tujuanKeberangkatan
string
required
tanggalKeberangkatan
string
required
Example
{
"asalKeberangkatan": "string",
"tujuanKeberangkatan": "string",
"tanggalKeberangkatan": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://kereta.api.fadhilkholaf.my.id/kereta/filter' \
--header 'Cookie: token=' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
message
string
required
data
array [object {7}]
required
id
string
required
namaKereta
string
required
deskripsi
string
required
kelas
enum<string>
required
Allowed values:
ekonomibisniseksekutifluxury
createdAt
string
required
updatedAt
string
required
jadwal
array[object (Jadwal) {9}]
required
Example
{
"message": "string",
"data": [
{
"id": "string",
"namaKereta": "string",
"deskripsi": "string",
"kelas": "ekonomi",
"createdAt": "string",
"updatedAt": "string",
"jadwal": [
{
"id": "string",
"asalKeberangkatan": "string",
"tujuanKeberangkatan": "string",
"tanggalKeberangkatan": "string",
"tanggalKedatangan": "string",
"harga": 0,
"keretaId": "string",
"createdAt": "string",
"updatedAt": "string"
}
]
}
]
}
🔴500Server Error
🟠401Unauthorized
🟠400Bad Request
Modified at 2025-03-17 13:03:16