-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from bcgov/grad-release
Grad release 1.21.0
- Loading branch information
Showing
31 changed files
with
1,143 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...c/main/java/ca/bc/gov/educ/api/course/controller/EquivalentOrChallengeCodeController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package ca.bc.gov.educ.api.course.controller; | ||
|
||
import ca.bc.gov.educ.api.course.model.dto.EquivalentOrChallengeCode; | ||
import ca.bc.gov.educ.api.course.service.EquivalentOrChallengeCodeService; | ||
import ca.bc.gov.educ.api.course.util.EducCourseApiConstants; | ||
import ca.bc.gov.educ.api.course.util.PermissionsConstants; | ||
import io.swagger.v3.oas.annotations.OpenAPIDefinition; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.info.Info; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.security.SecurityRequirement; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.security.access.prepost.PreAuthorize; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.util.List; | ||
|
||
@RestController | ||
@RequestMapping(EducCourseApiConstants.GRAD_COURSE_API_ROOT_MAPPING) | ||
@OpenAPIDefinition(info = @Info(title = "API for Student Course Data.", description = "This API is for Reading Student Course data.", version = "1"), | ||
security = {@SecurityRequirement(name = "OAUTH2", scopes = {"READ_GRAD_STUDENT_COURSE_DATA"})}) | ||
public class EquivalentOrChallengeCodeController { | ||
|
||
final EquivalentOrChallengeCodeService equivalentOrChallengeCodeService; | ||
|
||
public EquivalentOrChallengeCodeController(EquivalentOrChallengeCodeService equivalentOrChallengeCodeService) { | ||
this.equivalentOrChallengeCodeService = equivalentOrChallengeCodeService; | ||
} | ||
|
||
@GetMapping(EducCourseApiConstants.EQUIVALENT_OR_CHALLENGE_CODES_MAPPING) | ||
@PreAuthorize(PermissionsConstants.READ_EQUIVALENT_OR_CHALLENGE_CODE) | ||
@Operation(summary = "Find All Equivalent Or Challenge Codes", description = "Find All Equivalent Or Challenge Codes", tags = {"Equivalent Or Challenge Codes"}) | ||
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK")}) | ||
public ResponseEntity<List<EquivalentOrChallengeCode>> getEquivalentOrChallengeCodes() { | ||
return ResponseEntity.ok().body(equivalentOrChallengeCodeService.getEquivalentOrChallengeCodeList()); | ||
} | ||
|
||
@GetMapping(EducCourseApiConstants.EQUIVALENT_OR_CHALLENGE_CODE_MAPPING) | ||
@PreAuthorize(PermissionsConstants.READ_EQUIVALENT_OR_CHALLENGE_CODE) | ||
@Operation(summary = "Find Equivalent Or Challenge Code", description = "Find Equivalent Or Challenge Code", tags = {"Equivalent Or Challenge Code"}) | ||
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK"), @ApiResponse(responseCode = "404", description = "NOT FOUND")}) | ||
public ResponseEntity<EquivalentOrChallengeCode> getEquivalentOrChallengeCode(@PathVariable String equivalentOrChallengeCode) { | ||
return ResponseEntity.ok().body(equivalentOrChallengeCodeService.getEquivalentOrChallengeCode(equivalentOrChallengeCode)); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
api/src/main/java/ca/bc/gov/educ/api/course/controller/ExamSpecialCaseCodeController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package ca.bc.gov.educ.api.course.controller; | ||
|
||
import ca.bc.gov.educ.api.course.model.dto.ExamSpecialCaseCode; | ||
import ca.bc.gov.educ.api.course.service.ExamSpecialCaseCodeService; | ||
import ca.bc.gov.educ.api.course.util.EducCourseApiConstants; | ||
import ca.bc.gov.educ.api.course.util.PermissionsConstants; | ||
import io.swagger.v3.oas.annotations.OpenAPIDefinition; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.info.Info; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.security.SecurityRequirement; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.security.access.prepost.PreAuthorize; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.util.List; | ||
|
||
@RestController | ||
@RequestMapping(EducCourseApiConstants.GRAD_COURSE_API_ROOT_MAPPING) | ||
@OpenAPIDefinition(info = @Info(title = "API for Student Course Data.", description = "This API is for Reading Student Course data.", version = "1"), | ||
security = {@SecurityRequirement(name = "OAUTH2", scopes = {"READ_GRAD_STUDENT_COURSE_DATA"})}) | ||
public class ExamSpecialCaseCodeController { | ||
|
||
final ExamSpecialCaseCodeService examSpecialCaseCodeService; | ||
|
||
public ExamSpecialCaseCodeController(ExamSpecialCaseCodeService examSpecialCaseCodeService) { | ||
this.examSpecialCaseCodeService = examSpecialCaseCodeService; | ||
} | ||
|
||
@GetMapping(EducCourseApiConstants.EXAM_SPECIAL_CASE_CODES_MAPPING) | ||
@PreAuthorize(PermissionsConstants.READ_EXAM_SPECIAL_CASE_CODE) | ||
@Operation(summary = "Find All Exam Special Case Codes", description = "Find All Exam Special Case Codes", tags = {"Exam Special Case Codes"}) | ||
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK")}) | ||
public ResponseEntity<List<ExamSpecialCaseCode>> getExamSpecialCaseCodes() { | ||
return ResponseEntity.ok().body(examSpecialCaseCodeService.getExamSpecialCaseCodeList()); | ||
} | ||
|
||
@GetMapping(EducCourseApiConstants.EXAM_SPECIAL_CASE_CODE_MAPPING) | ||
@PreAuthorize(PermissionsConstants.READ_EXAM_SPECIAL_CASE_CODE) | ||
@Operation(summary = "Find Exam Special Case Code", description = "Find Exam Special Case Code", tags = {"Exam Special Case Code"}) | ||
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK"), @ApiResponse(responseCode = "404", description = "NOT FOUND")}) | ||
public ResponseEntity<ExamSpecialCaseCode> getExamSpecialCaseCode(@PathVariable String examSpecialCaseCode) { | ||
return ResponseEntity.ok().body(examSpecialCaseCodeService.getExamSpecialCaseCode(examSpecialCaseCode)); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...c/main/java/ca/bc/gov/educ/api/course/controller/FineArtsAppliedSkillsCodeController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package ca.bc.gov.educ.api.course.controller; | ||
|
||
import ca.bc.gov.educ.api.course.model.dto.FineArtsAppliedSkillsCode; | ||
import ca.bc.gov.educ.api.course.service.FineArtsAppliedSkillsCodeService; | ||
import ca.bc.gov.educ.api.course.util.EducCourseApiConstants; | ||
import ca.bc.gov.educ.api.course.util.PermissionsConstants; | ||
import io.swagger.v3.oas.annotations.OpenAPIDefinition; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.info.Info; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.security.SecurityRequirement; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.security.access.prepost.PreAuthorize; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.util.List; | ||
|
||
@RestController | ||
@RequestMapping(EducCourseApiConstants.GRAD_COURSE_API_ROOT_MAPPING) | ||
@OpenAPIDefinition(info = @Info(title = "API for Student Course Data.", description = "This API is for Reading Student Course data.", version = "1"), | ||
security = {@SecurityRequirement(name = "OAUTH2", scopes = {"READ_GRAD_STUDENT_COURSE_DATA"})}) | ||
public class FineArtsAppliedSkillsCodeController { | ||
|
||
final FineArtsAppliedSkillsCodeService fineArtsAppliedSkillsCodeService; | ||
|
||
public FineArtsAppliedSkillsCodeController(FineArtsAppliedSkillsCodeService fineArtsAppliedSkillsCodeService) { | ||
this.fineArtsAppliedSkillsCodeService = fineArtsAppliedSkillsCodeService; | ||
} | ||
|
||
@GetMapping(EducCourseApiConstants.FINE_ART_APPLIED_SKILLS_CODES_MAPPING) | ||
@PreAuthorize(PermissionsConstants.READ_FINE_ART_APPLIED_SKILLS_CODE) | ||
@Operation(summary = "Find All Fine Arts Applied Skills Codes", description = "Find All Fine Arts Applied Skills Codes", tags = {"Fine Arts Applied Skills Codes"}) | ||
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK")}) | ||
public ResponseEntity<List<FineArtsAppliedSkillsCode>> getFineArtsAppliedSkillsCodes() { | ||
return ResponseEntity.ok().body(fineArtsAppliedSkillsCodeService.getFineArtsAppliedSkillsCodeList()); | ||
} | ||
|
||
@GetMapping(EducCourseApiConstants.FINE_ART_APPLIED_SKILLS_CODE_MAPPING) | ||
@PreAuthorize(PermissionsConstants.READ_FINE_ART_APPLIED_SKILLS_CODE) | ||
@Operation(summary = "Find Fine Arts Applied Skills Code", description = "Find Fine Arts Applied Skills Code", tags = {"Fine Arts Applied Skills Code"}) | ||
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK"), @ApiResponse(responseCode = "404", description = "NOT FOUND")}) | ||
public ResponseEntity<FineArtsAppliedSkillsCode> getFineArtsAppliedSkillsCode(@PathVariable String fineArtsAppliedSkillsCode) { | ||
return ResponseEntity.ok().body(fineArtsAppliedSkillsCodeService.getFineArtsAppliedSkillsCode(fineArtsAppliedSkillsCode)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
api/src/main/java/ca/bc/gov/educ/api/course/model/dto/EquivalentOrChallengeCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package ca.bc.gov.educ.api.course.model.dto; | ||
|
||
import ca.bc.gov.educ.api.course.model.entity.BaseEntity; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.math.BigInteger; | ||
import java.sql.Date; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
@Entity | ||
@Table(name = "EQUIVALENT_OR_CHALLENGE_CODE") | ||
public class EquivalentOrChallengeCode extends BaseEntity { | ||
|
||
@Id | ||
@Column(name = "EQUIVALENT_OR_CHALLENGE_CODE", nullable = false) | ||
private String equivalentOrChallengeCode; | ||
|
||
@Column(name = "LABEL", nullable = false, length = 50) | ||
private String label; | ||
|
||
@Column(name = "DESCRIPTION", nullable = false, length = 355) | ||
private String description; | ||
|
||
@Column(name = "DISPLAY_ORDER", nullable = false, precision = 0) | ||
private BigInteger displayOrder; | ||
|
||
@Column(name = "EFFECTIVE_DATE", nullable = false) | ||
private Date effectiveDate; | ||
|
||
@Column(name = "EXPIRY_DATE", nullable = true) | ||
private Date expiryDate; | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
api/src/main/java/ca/bc/gov/educ/api/course/model/dto/ExamSpecialCaseCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package ca.bc.gov.educ.api.course.model.dto; | ||
|
||
import ca.bc.gov.educ.api.course.model.entity.BaseEntity; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.math.BigInteger; | ||
import java.sql.Date; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
@Entity | ||
@Table(name = "EXAM_SPECIAL_CASE_CODE") | ||
public class ExamSpecialCaseCode extends BaseEntity { | ||
|
||
@Id | ||
@Column(name = "EXAM_SPECIAL_CASE_CODE", nullable = false) | ||
private String examSpecialCaseCode; | ||
|
||
@Column(name = "LABEL", nullable = false, length = 50) | ||
private String label; | ||
|
||
@Column(name = "DESCRIPTION", nullable = false, length = 355) | ||
private String description; | ||
|
||
@Column(name = "DISPLAY_ORDER", nullable = false, precision = 0) | ||
private BigInteger displayOrder; | ||
|
||
@Column(name = "EFFECTIVE_DATE", nullable = false) | ||
private Date effectiveDate; | ||
|
||
@Column(name = "EXPIRY_DATE", nullable = true) | ||
private Date expiryDate; | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
api/src/main/java/ca/bc/gov/educ/api/course/model/dto/FineArtsAppliedSkillsCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package ca.bc.gov.educ.api.course.model.dto; | ||
|
||
import ca.bc.gov.educ.api.course.model.entity.BaseEntity; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.math.BigInteger; | ||
import java.sql.Date; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
@Entity | ||
@Table(name = "FINE_ARTS_APPLIED_SKILLS_CODE") | ||
public class FineArtsAppliedSkillsCode extends BaseEntity { | ||
|
||
@Id | ||
@Column(name = "FINE_ARTS_APPLIED_SKILLS_CODE", nullable = false) | ||
private String fineArtsAppliedSkillsCode; | ||
|
||
@Column(name = "LABEL", nullable = false, length = 50) | ||
private String label; | ||
|
||
@Column(name = "DESCRIPTION", nullable = false, length = 355) | ||
private String description; | ||
|
||
@Column(name = "DISPLAY_ORDER", nullable = false, precision = 0) | ||
private BigInteger displayOrder; | ||
|
||
@Column(name = "EFFECTIVE_DATE", nullable = false) | ||
private Date effectiveDate; | ||
|
||
@Column(name = "EXPIRY_DATE", nullable = true) | ||
private Date expiryDate; | ||
|
||
} |
Oops, something went wrong.