Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RustamKuramshin committed Mar 30, 2023
1 parent 9e2a109 commit 09e56e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .run/companies.run.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="companies" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<option name="ACTIVE_PROFILES" value="h2" />
<module name="com.zen-code.companies-data-rest.main" />
<module name="companies-data-rest.main" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.zencode.companiesdatarest.CompaniesDataRestApplication" />
<extension name="coverage">
<pattern>
Expand Down
2 changes: 1 addition & 1 deletion api-test.http
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GET localhost:8080/companies
Accept: application/json

### Получение компании по id с проекцией
GET localhost:8080/companies/2715e481-dff6-4405-ad5c-fb14aa07bd7c?projection=companyInfo
GET localhost:8080/companies/1?projection=companyInfo
Accept: application/json

### Изменение имени компании по id
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-h2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ server.port=8080
spring.application.name=companies-api

# Hibernate
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
Expand Down

0 comments on commit 09e56e7

Please sign in to comment.