Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

반응형

// Copyright (c) 2024 [mynameis@hajunho.com]. All rights reserved.

 

This plugin provides two methods for testing REST API functionality.

RESTAPI HJH Server Testing

Using the default provided server. I strive to keep the default server healthy at all times, but there may be instances when it's unavailable. This method tests the RESTAPI using a default server provided by the plugin.

  1. Create a new Blueprint in the Content Browser.
  2. In the Blueprint editor, search for the "RESTAPI HJH Server Testing" function when adding a node.
  3. Add this node to the graph and connect the execution pin.
  4. Input a float value as a parameter (this value is only output to the log and doesn't affect the server call).
  5. Compile and save the Blueprint.
  6. When you run the game or call the Blueprint in the editor, it will send a GET request to the default provided server (http://xxxxxxx:8000/howtotest/jjj). -> AWS Server has been down from now... will be moved to temporary server.

Make REST API Call (Using a custom server)

This method allows you to test the RESTAPI with a server address of your choice.

  1. Create a new Blueprint in the Content Browser.
  2. In the Blueprint editor, search for the "Make REST API Call" function when adding a node.
  3. Add this node to the graph and connect the execution pin.
  4. Input two string parameters to the function
  5. Compile and save the Blueprint.
  6. When you run the game or call the Blueprint in the editor, it will send a request to the specified URL using the specified HTTP method.

Both methods will output the server response to the log. In the output log, you can check the following information.

  • HTTP response code
  • Response content type
  • Response body
  • If the response is JSON, the parsed JSON fields

This plugin is useful for quickly checking the status of RESTAPI servers. In the future, more RESTAPI-related features can be added, making it easier to test and debug communication with servers during game development.

 

반응형

'3D world > Unreal Engine Plug-ins' 카테고리의 다른 글

Plug-in 개발 ERROR Logs  (1) 2024.09.06
how to use ver002  (0) 2024.08.25
왠지 플러그인 잘 만드는 곳 같아...  (0) 2022.05.26
itc - lib  (0) 2021.05.21
OpenCV installation  (0) 2021.01.31
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기