quidmye/products-endpoint

dev-master 2021-11-19 09:56 UTC

This package is auto-updated.

Last update: 2024-09-19 16:37:00 UTC


README

composer require quidmye/products-endpoint

然后运行以下命令

php artisan migrate

端点

POST: https://example.app/api/v1/format/ 参数

[
  'products' => [
    [
      'name' => 'SAMPLE NAME',
      'price' => 9.99,
      'image' => 'https://example.app/image.png',
      'category' => 'Category'
    ]
  ]
]

GET: https://example.app/api/v1/format/{id} 响应

{
    "status": "Success",
    "link": "https://example.app/storage/products/ymls/1.yml"
}

基本测试

php artisan test vendor/quidmye/products-endpoint