[Back-end] ETC

공통 기능(대시보드, 파일 다운로드, 이미지 다운로드 등), 관리자 코드 관리

첨부파일/ 이미지 다운로드

첨부파일을 다운로드 합니다.

GET http://localhost:8000/api/attachments/{id}

Path Parameters

Name
Type
Description

id*

Integer

첨부파일ID

이미지를 다운로드 합니다.

GET http://localhost:8000/api/images{id}

Path Parameters

Name
Type
Description

id*

Integer

이미지ID

썸네일

코드관리 페이지에서 상위 코드 목록을 가져옵니다.

GET http://localhost:8000/api/images/thumbnail/{imageName}

썸네일 폴더에서 썸네일 파일을 반환합니다.

댓글

자유게시글에 댓글을 작성합니다.

POST http://localhost:8000/api/boards/free/{boardId}/comments

Path Parameters

Name
Type
Description

boardId*

Integer

게시판ID

Request Body

Name
Type
Description

writer*

String

댓글 작성자

content

String

댓글 내용

자유게시글에 댓글을 삭제합니다.

DELETE http://localhost:8000/api/boards/free/{boardId}/comments/{commentId}

Path Parameters

Name
Type
Description

boardId*

Integer

게시판ID

commentId*

Integer

댓글ID

코드관리

코드관리 페이지에서 상위 코드 목록을 가져옵니다.

GET http://localhost:8000/api/codes

Query Parameters

Name
Type
Description

searchText

String

검색할 코드명, 하위코드명

pageSize

Integer

한 페이지 내 나타낼 수

currentPage

Integer

현재 페이지 번호

sort

String

정렬기준

order

String

정렬순서

코드 관리 페이지에서 코드를 저장합니다.

POST http://localhost:8000/api/codes

Request Body

Name
Type
Description

parentCodeValue

String

상위코드

parentCodeName

String

상위코드명

parentCodeDescript

String

상위코드 설명

childCodeValue

String

하위코드

childCodeName

String

하위코드명

childCodeDesciprt

String

하위코드 설명

코드 관리 페이지에서 코드를 수정합니다.

PUT http://localhost:8000/api/codes/{id}

Path Parameters

Name
Type
Description

id*

String

상위코드

Request Body

Name
Type
Description

parentCodeValue

String

상위코드

parentCodeName

String

상위코드명

parentCodeDescript

String

상위코드 설명

childCodeValue

String

하위코드

childCodeName

String

하위코드명

childCodeDesciprt

String

하위코드 설명

코드 관리 페이지에서 코드를 저장합니다.

DELETE http://localhost:8000/api/codes/{id}

Path Parameters

Name
Type
Description

id

String

상위코드

Last updated