Create API

API Testing

Workbench Postman-lite để test endpoint Daisan API — collections, history, assertions, code snippets.

Response

Bấm Send để gọi endpoint và xem response.

Generated code

Snippet sinh từ request hiện tại — copy/paste vào project.

bash
curl -X GET 'https://api.daisan.vn/product/api/v1/products' \
  -H 'Authorization: Bearer dsn_live_xxx' \
  -H 'Content-Type: application/json'
javascript
await fetch('https://api.daisan.vn/product/api/v1/products', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dsn_live_xxx',
    'Content-Type': 'application/json'
  }
}).then(r => r.json());
php
use Illuminate\Support\Facades\Http;

$res = Http::withToken('dsn_live_xxx')
    ->get('https://api.daisan.vn/product/api/v1/products');
return $res->json();