我一直在对URL进行CRUD操作,我认为它们是HTTP请求。 http请求是一种使用API的方法吗?
例如,在jsonPlaceholder.typicode.com的主页中,他们具有以下GET示例:
fetch('https://jsonplaceholder.typicode.com/todos/1')
.then(response => response.json())
.then(json => console.log(json))
最能描述此操作的术语是什么?
a)一个HTTP请求 b)jsonPlaceHolder API的使用
谢谢。
答案 0 :(得分:0)
GET,POST,PUT,PATCH和DELETE都是HTTP方法