주 콘텐츠로 건너뛰기
Hints and Tips 생성 편집

Easyway to use the baseURL/DB

shutterstock_2337894895-20231117-010152.jpg

Utilizing MIDAS Open API:

While the MIDAS Open API serves various purposes, its primary use often involves iterative modeling by modifying variables within predefined templates. Most of these actions heavily leverage "POST" and "PUT" operations within the baseURL/db resource.

As models grow complex and expansive, they demand numerous functionalities. It becomes increasingly difficult to manually write the JSON format while checking each functionality's manual.

Introduce a straightforward yet practical approach to enhance this process and give it more flexibility.

 

POSTMAN & GET Method

Maximizing Postman's Utility
Firstly, actively utilizing Postman proves indispensable for handling MIDAS Open API. This tool provides a simple yet powerful means to test API functionalities without coding, making it an essential tool for MIDAS Open API management.

Secondly, Embracing the "GET" Method

  • Input the desired data into MIDAS CIVIL NX.
  • Utilize the "GET" method to extract JSON formats.
  • Modify the first Key value to "Assign."
  • Data alterations using "PUT" for input.
  • Alternatively, delete data in MIDAS CIVIL NX and attempt input via the "POST" Method.

While seemingly straightforward, this method offers the quickest way to verify the desired JSON format for a specific database.

 

Utilizing the “Info” URL

There’s an API to check DB resources' Key explanations and Value types.

baseURL/info/db/…

 

That is the info URL. Add “info” between baseURL and db and use the “GET” method. The response shows the Key and Value of the selected DB JSON with explanations.

image-20231024-003012.png

0
컨텐츠가 도움이 되셨나요?