@Path(value="/student") 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")
@Timed
@HTTPMonitoring
public Student getStudent(@PathParam(value="nic")
String nic)
@POST @Consumes(value="application/json") @Metered @HTTPMonitoring public void addStudent(Student student)
@GET @Produces(value="application/json") @Counted @HTTPMonitoring public Collection<Student> getAll()
Copyright © 2015 WSO2. All rights reserved.