Skip to content

Commit

Permalink
Merge pull request #2 from deanone/main
Browse files Browse the repository at this point in the history
Changing code namespaces to org.eclipse.opensmartclide.dbapi.*
  • Loading branch information
deanone authored Oct 14, 2022
2 parents 9df10e5 + 8dc8bc4 commit f5e189c
Show file tree
Hide file tree
Showing 39 changed files with 86 additions and 75 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
# login to GitHub Container Registry
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${GITHUB_ACTOR} --password-stdin
# build image
docker build . --tag ghcr.io/eclipse-opensmartclide/smartclide/db_api:$(date +'%Y-%m-%d')
docker build . --tag ghcr.io/eclipse-opensmartclide/opensmartclide/db_api:$(date +'%Y-%m-%d')
# push image
docker push ghcr.io/eclipse-opensmartclide/smartclide/db_api:$(date +'%Y-%m-%d')
docker push ghcr.io/eclipse-opensmartclide/opensmartclide/db_api:$(date +'%Y-%m-%d')
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# smartclide-db-api
# The Eclipse OpenSmartCLIDE DB API

A RESTful API for accessing the SmartCLIDE database (MongoDB). The API exposes the following endpoints:
A RESTful API for accessing the resources of the internal OpenSmartCLIDE database. It exposes the following endpoints:

## /users (GET,POST,PUT,DELETE)

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# smartclide-db-api
# eclipse-opensmartclide-db-api

A RESTful API for accessing the SmartCLIDE database (MongoDB). The API exposes the following endpoints:
A RESTful API for accessing the resources of the internal OpenSmartCLIDE database. The API exposes the following endpoints:

## /users (GET,POST,PUT,DELETE)

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
site_name: SmartCLIDE DB API Component
site_name: The Eclipse OpenSmartCLIDE DB API Component
repo_url: https://github.com/eclipse-opensmartclide/smartclide-db-api

nav:
Expand Down
18 changes: 14 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,27 @@
<version>2.7.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.smartclide</groupId>
<artifactId>db-api</artifactId>

<groupId>org.eclipse.opensmartclide</groupId>

<artifactId>dbapi</artifactId>

<version>0.0.1-SNAPSHOT</version>
<name>db-api</name>
<description>Demo project for Spring Boot</description>

<name>eclipse-opensmartclide-db-api</name>

<description>The DB API of the OpenSmartCLIDE project.</description>

<properties>
<java.version>11</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand All @@ -31,11 +39,13 @@
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.smartclide.dbapi;
package org.eclipse.opensmartclide.dbapi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DbApiApplication {

public static void main(String[] args) {
SpringApplication.run(DbApiApplication.class, args);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.config;
package org.eclipse.opensmartclide.dbapi.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.CiManager;
import com.smartclide.dbapi.repository.CiManagerRepository;
import org.eclipse.opensmartclide.dbapi.model.CiManager;
import org.eclipse.opensmartclide.dbapi.repository.CiManagerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.Deployment;
import com.smartclide.dbapi.repository.DeploymentRepository;
import org.eclipse.opensmartclide.dbapi.model.Deployment;
import org.eclipse.opensmartclide.dbapi.repository.DeploymentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.DeploymentPlatform;
import com.smartclide.dbapi.repository.DeploymentPlatformRepository;
import org.eclipse.opensmartclide.dbapi.model.DeploymentPlatform;
import org.eclipse.opensmartclide.dbapi.repository.DeploymentPlatformRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.GitCredentials;
import com.smartclide.dbapi.repository.GitCredentialsRepository;
import org.eclipse.opensmartclide.dbapi.model.GitCredentials;
import org.eclipse.opensmartclide.dbapi.repository.GitCredentialsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.Service;
import com.smartclide.dbapi.repository.ServiceRepository;
import org.eclipse.opensmartclide.dbapi.model.Service;
import org.eclipse.opensmartclide.dbapi.repository.ServiceRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.ServiceRegistry;
import com.smartclide.dbapi.repository.ServiceRegistryRepository;
import org.eclipse.opensmartclide.dbapi.model.ServiceRegistry;
import org.eclipse.opensmartclide.dbapi.repository.ServiceRegistryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.Team;
import com.smartclide.dbapi.repository.TeamRepository;
import org.eclipse.opensmartclide.dbapi.model.Team;
import org.eclipse.opensmartclide.dbapi.repository.TeamRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.User;
import com.smartclide.dbapi.repository.UserRepository;
import org.eclipse.opensmartclide.dbapi.model.User;
import org.eclipse.opensmartclide.dbapi.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.smartclide.dbapi.controller;
package org.eclipse.opensmartclide.dbapi.controller;

import com.smartclide.dbapi.model.Workflow;
import com.smartclide.dbapi.repository.WorkflowRepository;
import org.eclipse.opensmartclide.dbapi.model.Workflow;
import org.eclipse.opensmartclide.dbapi.repository.WorkflowRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.exception;
package org.eclipse.opensmartclide.dbapi.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.MethodArgumentNotValidException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//package com.smartclide.dbapi.exception;
package org.eclipse.opensmartclide.dbapi.exception;
//package org.eclipse.opensmartclide.dbapi.exception;
//
//public class Error {
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//package com.smartclide.dbapi.exception;
package org.eclipse.opensmartclide.dbapi.exception;
//package org.eclipse.opensmartclide.dbapi.exception;
//
//import org.springframework.http.HttpStatus;
//import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//package com.smartclide.dbapi.exception;
package org.eclipse.opensmartclide.dbapi.exception;
//package org.eclipse.opensmartclide.dbapi.exception;
//
//public class ResourceNotFoundException extends RuntimeException {
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi.model;
package org.eclipse.opensmartclide.dbapi.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.CiManager;
import org.eclipse.opensmartclide.dbapi.model.CiManager;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface CiManagerRepository extends MongoRepository<CiManager, String> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.DeploymentPlatform;
import org.eclipse.opensmartclide.dbapi.model.DeploymentPlatform;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface DeploymentPlatformRepository extends MongoRepository<DeploymentPlatform, String> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.Deployment;
import org.eclipse.opensmartclide.dbapi.model.Deployment;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface DeploymentRepository extends MongoRepository<Deployment, String> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.GitCredentials;
import org.eclipse.opensmartclide.dbapi.model.GitCredentials;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface GitCredentialsRepository extends MongoRepository<GitCredentials, String> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.ServiceRegistry;
import org.eclipse.opensmartclide.dbapi.model.ServiceRegistry;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface ServiceRegistryRepository extends MongoRepository<ServiceRegistry, String> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.Service;
import org.eclipse.opensmartclide.dbapi.model.Service;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.Team;
import org.eclipse.opensmartclide.dbapi.model.Team;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface TeamRepository extends MongoRepository<Team, String> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.User;
import org.eclipse.opensmartclide.dbapi.model.User;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface UserRepository extends MongoRepository<User, String> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.smartclide.dbapi.repository;
package org.eclipse.opensmartclide.dbapi.repository;

import com.smartclide.dbapi.model.Workflow;
import org.eclipse.opensmartclide.dbapi.model.Workflow;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface WorkflowRepository extends MongoRepository<Workflow, String> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.smartclide.dbapi;
package org.eclipse.opensmartclide.dbapi;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
Expand Down

0 comments on commit f5e189c

Please sign in to comment.