Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jsonplaceholder typicode

fetch('https://jsonplaceholder.typicode.com/posts/1', {
  method: 'PATCH',
  body: JSON.stringify({
    title: 'foo',
  }),
  headers: {
    'Content-type': 'application/json; charset=UTF-8',
  },
})
  .then((response) => response.json())
  .then((json) => console.log(json));
Source by jsonplaceholder.typicode.com #
 
PREVIOUS NEXT
Tagged: #jsonplaceholder #typicode
ADD COMMENT
Topic
Name
6+6 =