Skip to content

ZingerXY/testTender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

// Создание тендора
fetch('index.php?tender', {
	method: 'POST',
	headers: {'content-type':'application/json'},
	body: JSON.stringify({number:'123-23',status:'Открыто',name:'Тестовый тендор'})
}).then(response => response.json()).then(data => console.log(data));

// Получить тендеры с указанной датой
fetch('index.php?listTender&date=2022-08-14 19:22:04', {
	headers: {'content-type': 'application/json'}
}).then(response => response.json()).then(data => console.log(data));

// Получить тендеры с указанным именем
fetch('index.php?listTender&name=Отводы закупка БФА', {
	headers: {'content-type': 'application/json'}
}).then(response => response.json()).then(data => console.log(data));

// Получить тендер по идетификатору
fetch('index.php?tender&id=152420172', {
	headers: {'content-type': 'application/json'}
}).then(response => response.json()).then(data => console.log(data));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages