Modul ini mendokumentasikan endpoint publik/non-trading untuk konten, konfigurasi, dan utilitas ringan.
Semua endpoint di halaman ini adalah API v1 (/api/...).
Konten publik
News
| Method | Path | Controller@method |
|---|
| GET | /api/news | NewsController@getAllNews |
| GET | /api/news-categories | NewsController@getAllCategories |
| GET | /api/news/{slug} | NewsController@getNews |
| GET | /api/news/tag/{tag} | NewsController@getNewsByTags |
Query parameter
GET /api/news
category_id (opsional)
category (opsional, sebagai alternatif category_id)
- pagination/sort memanfaatkan parameter umum (
limit, offset, sortBy, sort)
GET /api/news-categories
limit, offset, sort_by, sort
Response
- Sukses: envelope
code=200, result=true, data berisi list/detail.
- Gagal (
/news/{slug} jika tidak ketemu): sendError("News not found").
Banner
| Method | Path | Controller@method |
|---|
| GET | /api/banner | BannerController@getAllBanner |
Mengembalikan banner aktif (status = ACTIVE).
Konfigurasi & referensi
Country / bank / asset info
| Method | Path | Controller@method |
|---|
| GET | /api/country | CountryController@getAllCountry |
| GET | /api/banks | BanksController@listBank |
| GET | /api/asset-information/{symbol} | AssetInformationController@show |
Setting
| Method | Path | Controller@method |
|---|
| GET | /api/setting/get-value/{key} | SettingController@searchByKey |
| GET | /api/setting/get-all | SettingController@getAllSetting |
| GET | /api/setting/get-multiple-values | SettingController@getMultipleValues |
Query parameter khusus
GET /api/setting/get-multiple-values
keys: daftar key dipisahkan koma, contoh:
?keys=maintenance_mode,kyc_enabled,withdraw_status
Response
searchByKey:
- sukses:
data = { key, value }
- gagal:
api.setting_not_found
Currency / pair / fee / transaction lookup
| Method | Path | Controller@method |
|---|
| GET | /api/currency/exchange-rate | CurrencyController@exchangeRate |
| GET | /api/price/get-category | TxPairController@getTxPairCategory |
| GET | /api/fee-list | CoinController@getFeeList |
| GET | /api/transaction/{provider}/{txId} | TransactionController@retrieveTransaction |
| GET | /api/cashOrder/get-price | CashOrderController@getPrice |
Query parameter khusus
GET /api/currency/exchange-rate
base (default USD)
symbol (default IDR)
Payment method info (publik)
| Method | Path | Controller@method |
|---|
| GET | /api/xendit/payment-method/{type} | XenditController@paymentMethod |
| GET | /api/payment-methods/va/{code}/{lang} | XenditController@vaDetail |
| GET | /api/duitku/disbursement/list-bank | DuitkuController@disbursementBankList |
Endpoint user (protected) dalam modul ini
Berikut endpoint yang terkait personalisasi/watchlist namun masih berhubungan dengan konten/pair:
| Method | Path | Controller@method | Middleware |
|---|
| GET | /api/dicts | DictController@getDictList | auth.xtoken, verified:api |
| POST | /api/collect | CollectController@collect | auth.xtoken, verified:api |
POST /api/collect
Payload
Behavior
- Jika pair belum di-collect: membuat record collect (
collect ok!).
- Jika pair sudah di-collect: menghapus collect (
cancel ok!).
- Jika
txPair tidak valid: sendError("txPair not exist!").