Skip to content

/New/Instance에 생성&삭제가 동시에 위치 #67

Description

@ga111o
  • 인스턴스 생성과 삭제 모두 /New/Instance로 호출. http메서드 post랑 delete로만 구분해서 호출하고 있습니다.
    • 경로명이 New인데 삭제에도 사용되고 있습니다. 물론 단일 리소스에 여러 메서드를 두는 것 자체는 문제 없긴 한데,
    • 충분히 헷갈릴만한 부분이라 의도된 부분이 아니면 수정이 필요하지 않나 싶습니다.

  • client/cms.go:95, - RequestNewInstance
    • url: client/cms.go:98 -> POST http://{CMS_HOST}/New/Instance
    • 메서드: client/cms.go:105, body {"Subnet": "..."}
  • client/cms.go:54 - RequestDeleteInstance
    • URL: client/cms.go:57DELETE http://{CMS_HOST}/New/Instance
    • 메서드: client/cms.go:63, body {"IP": "..."}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions