Submission exercise-epita-ing-assistants-yaka-jws-2028-guillem.george-522732c

This commit is contained in:
Guillem George 2026-02-12 16:53:12 +01:00
parent 522732ceee
commit 20ab7bc8b2
6 changed files with 38 additions and 1 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
target/
.idea/

View file

@ -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;
} }

View file

@ -0,0 +1,5 @@
package fr.epita.assistants.presentation.rest;
public class Endpoints {
}

View file

@ -0,0 +1,5 @@
package fr.epita.assistants.presentation.rest.request;
public class ReverseRequest {
}

View file

@ -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();
}
}

View file

@ -0,0 +1,5 @@
package fr.epita.assistants.presentation.rest.response;
public class ReverseResponse {
}