Skip to content

Commit

Permalink
feat: migrate to starter.web.rest package
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriidenisenko committed Jul 19, 2024
1 parent cb8960e commit 6127758
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful;
package dev.knowhowto.acmecloudnetflix.starter.web.rest;

import javax.validation.constraints.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web;
package dev.knowhowto.acmecloudnetflix.starter.web.rest;

import javax.validation.ConstraintViolationException;
import javax.validation.constraints.NotNull;

import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.ErrorCode;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.ErrorResponse;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.InvalidContentTypeMeta;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.InvalidHttpMethodMeta;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.InvalidRequestBodyMeta;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.InvalidRequestParameterMeta;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.UnknownErrorMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.ErrorCode;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.ErrorResponse;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.InvalidContentTypeMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.InvalidHttpMethodMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.InvalidRequestBodyMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.InvalidRequestParameterMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.UnknownErrorMeta;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.TypeMismatchException;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.knowhowto.acmecloudnetflix.starter.restful;
package dev.knowhowto.acmecloudnetflix.starter.web.rest;

import dev.knowhowto.acmecloudnetflix.starter.restful.web.WebConfig;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.WebConfig;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web;
package dev.knowhowto.acmecloudnetflix.starter.web.rest;

import static dev.knowhowto.acmecloudnetflix.starter.restful.web.RestfulErrorHandlerUtils.getJsonPointerField;
import static dev.knowhowto.acmecloudnetflix.starter.web.rest.RestfulErrorHandlerUtils.getJsonPointerField;

import java.util.List;
import java.util.Objects;
Expand All @@ -10,13 +10,13 @@
import javax.validation.ConstraintViolationException;

import com.fasterxml.jackson.databind.exc.InvalidFormatException;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.Error;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.ErrorResponse;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.InvalidContentTypeMeta;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.InvalidHttpMethodMeta;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.InvalidRequestBodyMeta;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.InvalidRequestParameterMeta;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.UnknownErrorMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.Error;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.ErrorResponse;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.InvalidContentTypeMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.InvalidHttpMethodMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.InvalidRequestBodyMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.InvalidRequestParameterMeta;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.UnknownErrorMeta;
import org.springframework.beans.TypeMismatchException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.converter.HttpMessageNotReadableException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web;
package dev.knowhowto.acmecloudnetflix.starter.web.rest;

import java.util.stream.Collectors;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web;
package dev.knowhowto.acmecloudnetflix.starter.web.rest;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

import lombok.experimental.UtilityClass;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

public record InvalidRequestBodyMeta(String field, Object invalidValue) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

public record InvalidRequestParameterMeta(String parameter, String invalidValue) {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.acmecloudnetflix.starter.restful.web.dto;
package dev.knowhowto.acmecloudnetflix.starter.web.rest.dto;

import org.apache.commons.lang3.exception.ExceptionUtils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
dev.knowhowto.acmecloudnetflix.starter.restful.RestfulAutoConfiguration
dev.knowhowto.acmecloudnetflix.starter.web.rest.RestfulAutoConfiguration
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import dev.knowhowto.acmecloudnetflix.department.dto.DepartmentDto;
import dev.knowhowto.acmecloudnetflix.department.entity.Department;
import dev.knowhowto.acmecloudnetflix.department.repository.DepartmentRepository;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.ErrorResponse;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.PageRequestDto;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.ErrorResponse;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.PageRequestDto;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import javax.validation.Valid;

import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.ErrorResponse;
import dev.knowhowto.acmecloudnetflix.starter.restful.web.dto.PageRequestDto;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.ErrorResponse;
import dev.knowhowto.acmecloudnetflix.starter.web.rest.dto.PageRequestDto;
import dev.knowhowto.acmecloudnetflix.userprofile.dto.UserProfileDto;
import dev.knowhowto.acmecloudnetflix.userprofile.dto.UserProfileWithDepartmentDto;
import dev.knowhowto.acmecloudnetflix.userprofile.entity.UserProfile;
Expand Down

0 comments on commit 6127758

Please sign in to comment.