Skip to content

Commit

Permalink
[FIX] 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Jan 9, 2024
1 parent d193697 commit 2cab1c5
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,32 @@ jobs:
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash

- name: Build with Gradle
run: ./gradlew build
shell: bash

- name: Create application-secret.yml
run: |
pwd
touch src/main/resources/application-secret.yml
echo "${{ secrets.APPLICATION_SECRET_YML }}" >> src/main/resources/application-secret.yml
cat src/main/resources/application-secret.yml
- name: Make zip file
run: zip -qq -r ./$GITHUB_SHA.zip .
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ACCESS_KEY_SECRET }}
aws-region: ap-northeast-2

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash

- name: Build with Gradle
run: ./gradlew build
shell: bash

- name: Make zip file
run: zip -qq -r ./$GITHUB_SHA.zip .
shell: bash

- name: Upload to AWS S3
run: |
aws deploy push \
Expand Down
70 changes: 70 additions & 0 deletions src/main/resources/static/docs/open-api-3.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,53 @@
}
}
},
"/api/v1/routines/daily/member" : {
"post" : {
"tags" : [ "MEMBER DAILY ROUTINE" ],
"summary" : "회원 데일리 루틴 추가 성공",
"description" : "회원 데일리 루틴 추가 성공",
"operationId" : "post-routine-docs",
"requestBody" : {
"content" : {
"application/json;charset=UTF-8" : {
"schema" : {
"$ref" : "#/components/schemas/api-v1-routines-daily-member1721287602"
},
"examples" : {
"post-routine-docs" : {
"value" : "{\n \"routineId\" : 1\n}"
}
}
}
}
},
"responses" : {
"201" : {
"description" : "201",
"headers" : {
"Location" : {
"description" : "Redirect URI",
"schema" : {
"type" : "string"
}
}
},
"content" : {
"application/json;charset=UTF-8" : {
"schema" : {
"$ref" : "#/components/schemas/api-v1-routines-daily-member1327124516"
},
"examples" : {
"post-routine-docs" : {
"value" : "{\n \"success\" : true,\n \"message\" : \"루틴 추가 성공\",\n \"data\" : {\n \"routineId\" : 1\n }\n}"
}
}
}
}
}
}
}
},
"/api/v1/routines/daily/themes" : {
"get" : {
"tags" : [ "DAILY ROUTINE" ],
Expand Down Expand Up @@ -243,6 +290,29 @@
}
}
},
"api-v1-routines-daily-member1327124516" : {
"type" : "object",
"properties" : {
"data" : {
"type" : "object",
"properties" : {
"routineId" : {
"type" : "number",
"description" : "생성한 루틴 id"
}
},
"description" : "응답 데이터"
},
"success" : {
"type" : "boolean",
"description" : "응답 성공 여부"
},
"message" : {
"type" : "string",
"description" : "응답 메시지"
}
}
},
"api-v1-test486549215" : {
"type" : "object"
}
Expand Down

0 comments on commit 2cab1c5

Please sign in to comment.