Submission exercise-epita-ing-assistants-yaka-jws-2028-guillem.george-522732c
This commit is contained in:
parent
522732ceee
commit
20ab7bc8b2
6 changed files with 38 additions and 1 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
target/
|
||||||
|
.idea/
|
||||||
|
|
@ -8,5 +8,5 @@ import java.util.List;
|
||||||
public class CourseModel {
|
public class CourseModel {
|
||||||
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) protected Long id;
|
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) protected Long id;
|
||||||
public String name;
|
public String name;
|
||||||
public @ElementCollection @CollectionTable(name = "course_model_tags") List<String> tag;
|
public @ElementCollection @CollectionTable(name = "course_model_tags") @JoinColumn(name="course_id") List<String> tag;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
package fr.epita.assistants.presentation.rest;
|
||||||
|
|
||||||
|
public class Endpoints {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
package fr.epita.assistants.presentation.rest.request;
|
||||||
|
|
||||||
|
public class ReverseRequest {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
package fr.epita.assistants.presentation.rest.response;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.GET;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
import jakarta.ws.rs.core.Response;
|
||||||
|
|
||||||
|
@Path("/hello")
|
||||||
|
@Consumes(MediaType.TEXT_PLAIN)
|
||||||
|
@Produces(MediaType.TEXT_PLAIN)
|
||||||
|
public class HelloResponse {
|
||||||
|
@Path("/{name}")
|
||||||
|
@GET
|
||||||
|
public String greeting(@PathParam("name") String name) {
|
||||||
|
String content
|
||||||
|
Response.accepted();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
package fr.epita.assistants.presentation.rest.response;
|
||||||
|
|
||||||
|
public class ReverseResponse {
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue