Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: init #2

Merged
merged 21 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
2b0c6f8
docs: add design docs
Nictheboy Aug 15, 2024
0c95378
chore: init spring boot project
Nictheboy Aug 16, 2024
28f6a8f
feat: auto generate api interfaces from design/API/NT-API.yml
Nictheboy Aug 16, 2024
2d1b976
chore: add code formatter (spotless) to keep code tidy
Nictheboy Aug 17, 2024
34d6c1a
feat(space, task, team): create controller
Nictheboy Aug 18, 2024
b2d1bfa
chore: update swagger-codegen-maven-plugin to openapi-generator-maven…
Nictheboy Aug 19, 2024
1c67c6c
chore: update design/API/NT-API.yml from swagger 2.0 to openapi 3.0
Nictheboy Aug 19, 2024
caa450d
fix(space, task, team): make request body required
Nictheboy Aug 19, 2024
d631b33
fix(api): remove legacy members in User
Nictheboy Aug 20, 2024
fa29615
feat: initialize JPA
Nictheboy Aug 20, 2024
9a7a542
enhance: optimize pom.xml
Nictheboy Aug 21, 2024
fd12248
feat: set up error handling
Nictheboy Aug 21, 2024
bbf1e2d
feat: compose things together and initialize tests
Nictheboy Aug 21, 2024
73f4693
chore: create auto build workflow
Nictheboy Aug 21, 2024
41d7f76
enhance: enhance auto build workflow with cache and uploading
Nictheboy Aug 21, 2024
537345a
refactor: change package name to org.rucca.cheese
Nictheboy Aug 22, 2024
8a400eb
refactor: remove empty default constructor in GlobalErrorHandler
Nictheboy Aug 22, 2024
eadcde8
chore: add workflow for CodeQL and Dependabot
Nictheboy Aug 22, 2024
341fa9f
fix: remove the default exception handler generated by OpenAPI codegen
Nictheboy Aug 22, 2024
a194bb1
chore: use jacoco to collect coverage
Nictheboy Aug 22, 2024
1c6a3d9
chore: unify workflow triggers
Nictheboy Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
19 changes: 19 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.7/apache-maven-3.9.7-bin.zip
21 changes: 21 additions & 0 deletions design/API/About.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Integrated Swagger API Specification

## Introduction
We have used `swagger-codegen-maven-plugin` to generate api interfaces from the swagger specification file. This is an automated process, and the generated code is placed in `target/generated-sources/swagger` directory. You can directly use these interfaces in your code.

## Swagger Version
Swagger version of swagger specification file should be Swagger 2.0

If you are using Swagger 3.0, you can convert it to Swagger 2.0 using the following command:

```bash
pnpm install -g api-spec-converter
api-spec-converter \
--from openapi_3 \
--to swagger_2 \
--syntax yaml \
--order default \
--check \
--dummy \
your-swagger-3.0.yaml
```
Loading