Responses
/api/v1/products
POST 201
success-status: 400 (bad request), 500
failure-status: {
id: 1,
import axios from 'axios'; | |
import qs from 'qs'; | |
import store from '../store/index' | |
// axios 配置 | |
axios.defaults.timeout = 30000; | |
axios.defaults.baseURL = '/'; | |
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'; | |
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'; //这是一个ajax请求 | |
// axios.defaults.headers['X-CSRF-TOKEN'] = $('meta[name="csrf-token"]').attr('content'); |
/api/v1/products
201
400 (bad request), 500
{
id: 1,
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log