How to handle GET method with body param in CB-TB API
#502
Replies: 4 comments
라고 합니다. Resty 도 client := resty.New()
client.SetAllowGetMethodPayload(true)코드를 실행하여 GET 에 body 를 넣을 수는 있지만 Swagger, Resty 등의 사례와 RFC 7231을 참고하여 다른 링크:
기타: Spider 초기 코드에서는 Tumblebug 은 |
|
@jihoon-seo
|
|
Post with JSON Body (조회인데 Post라 마음이 불편함) |
Uh oh!
There was an error while loading. Please reload this page.
What happened
:
다음 GET API들은 Body로 GET에 대한 조건을 입력 받습니다.
GET /ns/{nsId}/resources/filterSpecs
GET /ns/{nsId}/resources/filterSpecsByRange
GET /lookupImage <- connectionConfig 만
GET /lookupImages <- connectionConfig 만
GET /lookupSpec <- connectionConfig 만
GET /lookupSpecs <- connectionConfig 만
Swagger UI 에서 Body를 포함한 Get을 금지하고 있어서, 다음과 같은 애러가 발생합니다.
What you expected to happen
: 애러 없이 정상 동작
How to reproduce it (as minimally and precisely as possible)
: 항시 발생
Anything else we need to know?
:
Environment
Proposed solution
: @jihoon-seo 의 조언에 따라
Any other context
:
All reactions