You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
405 B
JavaScript

fetch("https://forge.gwenaelremond.fr/api/v1/user/repos", {
method: "POST",
headers: {
Authorization: "token ${MON_TOKEN_API}",
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({
name: "exercice",
description: "Leon",
}),
})
.then((response) => response.json())
.then((data) => console.log(data));