MCPcopy Create free account
hub / github.com/amigoscode/spring-boot-fullstack-professional / addNewStudent

Function addNewStudent

src/frontend/src/client.js:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 .then(checkStatus);
16
17export const addNewStudent = student =>
18 fetch("api/v1/students", {
19 headers: {
20 'Content-Type': 'application/json'
21 },
22 method: 'POST',
23 body: JSON.stringify(student)
24 }
25 ).then(checkStatus)
26
27export const deleteStudent = studentId =>
28 fetch(`api/v1/students/${studentId}`, {

Callers 1

onFinishFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected