Skip to content

Commit

Permalink
feat(core-api): create project CRUD api
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomgrus committed Jan 24, 2022
1 parent 21fea8e commit bfb032e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/core-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.decathlon.ara.coreapi.repository;

import com.decathlon.ara.coreapi.domain.AraProject;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(collectionResourceRel = "projects", path = "projects")
public interface AraProjectRepository extends PagingAndSortingRepository<AraProject, String> {

}

0 comments on commit bfb032e

Please sign in to comment.