Skip to content

Commit

Permalink
Merge branch 'QB-22' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
phjppo0918 committed Nov 21, 2023
2 parents b1735ea + ee5d899 commit 2d829a5
Show file tree
Hide file tree
Showing 5 changed files with 514 additions and 72 deletions.
36 changes: 36 additions & 0 deletions src/docs/asciidoc/api-docs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,32 @@ include::{snippets}/create-answer/request-fields.adoc[]

include::{snippets}/create-answer/http-response.adoc[]

== 답변 목록 조회

=== HTTP request

include::{snippets}/find-all-answers/http-request.adoc[]
include::{snippets}/find-all-answers/query-parameters.adoc[]

=== HTTP response

include::{snippets}/find-all-answers/http-response.adoc[]
include::{snippets}/find-all-answers/response-fields.adoc[]


= answer-comments
== 답변 댓글 생성

=== HTTP request

include::{snippets}/create-answer-comment/http-request.adoc[]
include::{snippets}/create-answer-comment/request-fields.adoc[]

=== HTTP response

include::{snippets}/create-answer/http-response.adoc[]


= departs
== 학과 생성

Expand Down Expand Up @@ -63,6 +89,16 @@ include::{snippets}/authenticate-email/query-parameters.adoc[]
=== HTTP response
include::{snippets}/authenticate-email/http-response.adoc[]

= image
== image 생성
=== HTTP request
include::{snippets}/save-image/http-request.adoc[]
include::{snippets}/save-image/request-fields.adoc[]

=== HTTP response
include::{snippets}/save-image/http-response.adoc[]
include::{snippets}/save-image/response-fields.adoc[]

= lectures

== 강의 생성
Expand Down
17 changes: 17 additions & 0 deletions src/main/kotlin/site/qbox/qboxserver/domain/image/ImageCtrl.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package site.qbox.qboxserver.domain.image

import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.*
import org.springframework.web.multipart.MultipartFile
import site.qbox.qboxserver.domain.image.dto.ImageRes

@RestController
@RequestMapping("images")
class ImageCtrl(
private val imageSvc: ImageSvc,
) {
@PostMapping
@ResponseStatus(HttpStatus.CREATED)
fun save(@RequestPart file: MultipartFile): ImageRes =
imageSvc.save(file)
}
Loading

0 comments on commit 2d829a5

Please sign in to comment.