What would you like to be enhanced
:
Move MCIS refine feature's REST API: from GET /mcis to GET /control/mcis.
Why is this needed
:
/ns/{nsId}/mcis/{mcisId} [get]API์๋ ์ ๋ณด/์ํ ์กฐํ ๊ธฐ๋ฅ (metadata, status, id, simple) ๋ง ๋จ๊ธด๋ค๋ฉด,
refine๊ธฐ๋ฅ์ ๋ค๋ฅธ API๋ก ์ฎ๊ธฐ๋ ๊ฒ์ด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค. ๐
๊ณต๊ฐํฉ๋๋ค..^^ ์ผ๋จ api๋ฅผ ์ฝ๊ธฐ ์ ์ฉ ๊ตฌ๋ถ์ ์ํด ๋๋๋ ์ํฉ์ด๋ผ ์ค๋ธ์ ํธ์ ์์ ์ ๊ฐํ๋ refine์ ์ฎ๊ธฐ๋ ๊ฒ์ด ๋ง์ ๊ฒ ๊ฐ์๋ฐ,
Refine์ด ๋ผ์ดํ์ฌ์ดํด์ ์ํ ์ ๋ฆฌ์ต์ ์ ๊ฒ์ ๊ณ ๋ คํ๋ฉด
/ns/{nsId}/control/mcis/{mcisId}์ ๋ค์ด๊ฐ๋ ๋์ง ์์๊น ์ถ๋ค์.^^
Proposed solution
:
https://github.com/cloud-barista/cb-tumblebug/blob/main/src/api/rest/server/mcis/control.go ํ์ผ์
func RestGetMcis(c echo.Context) error ํจ์์
else if ๊ตฌ๋ฌธ์์ action == "refine" ์กฐ๊ฑด์ ์ญ์ ํ๊ณ
func RestGetControlMcis(c echo.Context) error ํจ์์
if ๊ตฌ๋ฌธ์ action == "refine" ์กฐ๊ฑด์ ์ถ๊ฐ
์์ ๋ ํจ์์ Go annotations (for Swagger) ๋ฅผ ์ ์ ํ ์์
src/ ์์ make swag ์คํํ์ฌ Swagger doc ์
๋ฐ์ดํธ
ํ ์คํธ ์คํฌ๋ฆฝํธ์ REST API path๋ ์ ์ ํ ์์
/assign @PARKINHYO
Most helpful comment
/assign @PARKINHYO