This commit is contained in:
parent
b9ffc105be
commit
bd967e1d9e
|
|
@ -27,7 +27,7 @@ def test():
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-brands', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-brands', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ def test():
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-groups', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-groups', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ def test():
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-models', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-models', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ def test():
|
||||||
'id': id,
|
'id': id,
|
||||||
'file_name': id_generator(16) + '.jpg',
|
'file_name': id_generator(16) + '.jpg',
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/picture', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/picture', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ def test():
|
||||||
3: get_data()
|
3: get_data()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-products', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-products', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
2
brand.py
2
brand.py
|
|
@ -18,7 +18,7 @@ def test():
|
||||||
'picture_id': 'picture_75g36ayxk9yvl8lz',
|
'picture_id': 'picture_75g36ayxk9yvl8lz',
|
||||||
'type': 10,
|
'type': 10,
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/brand', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/brand', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
2
group.py
2
group.py
|
|
@ -16,7 +16,7 @@ def test():
|
||||||
'url': id_generator(16),
|
'url': id_generator(16),
|
||||||
'picture_src': id_generator(16) + '.jpg',
|
'picture_src': id_generator(16) + '.jpg',
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/group', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/group', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
2
model.py
2
model.py
|
|
@ -19,7 +19,7 @@ def test():
|
||||||
'brand_id': 'brand_rbmjh7flxc9zgr0r',
|
'brand_id': 'brand_rbmjh7flxc9zgr0r',
|
||||||
'picture_id': 'picture_75g36ayxk9yvl8lz',
|
'picture_id': 'picture_75g36ayxk9yvl8lz',
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/model', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/model', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ def test():
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/batch-pictures', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/batch-pictures', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ def test():
|
||||||
'right': 0,
|
'right': 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
req = Request('POST', 'http://localhost/api/v1.0/show-case/product', json=data, auth=('qwe', 'qwe'))
|
req = Request('POST', 'https://new2.spavto96.ru/api/v1.0/show-case/product', json=data, auth=('qwe', 'qwe'))
|
||||||
prepped = req.prepare()
|
prepped = req.prepare()
|
||||||
resp = s.send(prepped)
|
resp = s.send(prepped)
|
||||||
print(resp.status_code)
|
print(resp.status_code)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue