Closed AleksCerberus closed 3 years ago
After some research, I found that "method" of Endpoint stores in IndexDB in lower case
At the same time sources use METHOD_WITH_BODY.includes(endp.method) && endp.body
which expecting UPPER case.
If export project in RAW APIC, edit endpoint method from "post" to "POST" and import - all actions (view doc and export as OpenAPI) will function as expected. Until "save endpoint" Also after import "corrected" version - API Designer doesn't understand "method", I think that is because apic expects method value in lower case in IndexDD
Tested on: a) Chrome Extension v 3.0.0 b) MacOS application v 3.0.0 c) https://apic.app/online/ (v 3.0.0)
Steps to reproduce a bug: 1) Switch to API Designer 2) Create Custom Endpoint with POST Method 3) Define Request Body (raw or form-data or x-www-form-urlencoded doesn't matter) 4) Save Endpoint 5) --- a) Try to Export as "Open API Spec(Swagger)" - json/yaml has no Request Body in export text --- b) Switch to Docs - Expand endpoint - no Request Body params --- c) Try to Export as "Raw APIC Project" - all fine
Path Params, Query Params, Headers, Responses - all work fine