@Path(value="/student") @Timed public class StudentService extends Object
| Constructor and Description |
|---|
StudentService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStudent(Student student) |
Collection<Student> |
getAll() |
Student |
getStudent(String nic) |
@GET
@Path(value="/{nic}")
@Produces(value="application/json")
@HTTPMonitored(tracing=true)
public Student getStudent(@PathParam(value="nic")
String nic)
@POST @Consumes(value="application/json") @HTTPMonitored(tracing=true) public void addStudent(Student student)
@GET @Produces(value="application/json") @HTTPMonitored public Collection<Student> getAll()
Copyright © 2023 WSO2. All rights reserved.