# \[Plugin\] Http/s REST, blueprintable JSON query and Parse API manager \[VaRest\]

**URL:** <https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [July 17, 2014, 12:32am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725 "2014-07-17T00:32:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [July 17, 2014, 12:32am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/1 "2014-07-17T00:32:03Z")

</div>

I’m glad to announce that **[VaRest](https://github.com/ufna/VaRest)** release candidate is officially out! 🙂 Today plugin is ready for use, so I’ve decided to make a thread in “Released projects”.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/e/25edca9c49f59a86f62a8a4179bc18acf67e48ab.jpeg)

**VaRest** is the plugin for Unreal Engine 4 that makes REST server communications simple to use with full Json query support.

Current version: **[1.1 RC 8](https://github.com/ufna/VaRest/releases/tag/1.1-rc8)**

**Key Features:**

- Flexible **Http/Https request** management with support of different Verbs and Content Types
- **No C++ coding required** , everything can be managed via blueprints
- **Blueprintable Json** wrapper with almost full support of Json features: different types of values, **arrays** , both ways serializarion to FString, etc.
- Blueprintable FJsonValue wrapper - **full Json features made for blueprints!**
- Parse REST API manager to start working with **[Parse](https://parse.com/)** out of the box!

Moreover, plugin is completely\*\* free\*\* and available under **MIT open-source license**. You can use it in commercial projects, you can modify anything, etc. In other words, you’re in charge.

Check the **Wiki** ]([GitHub - ufna/VaRest: REST API plugin for Unreal Engine 4 - we love restfull backend and JSON communications!](https://github.com/ufna/VaRest/wiki)) for plugin **[usage examples](https://github.com/ufna/VaRest/wiki/Plugin-Usage)** and installation notes.

I’ll be thankfull for plugin testing, feedback and new ideas how to improve the plugin! 🙂

---

<div class="post-metadata">

**Author:** ![TechLord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techlord/32/1040563_2.png) [@TechLord](https://forums.unrealengine.com/u/TechLord)\
**Post date:** [July 17, 2014, 2:07am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/2 "2014-07-17T02:07:33Z")

</div>

AWESOME WORK! Inspired me to research more into the concept of [REST](http://rest.elkstein.org/). I sincerely appreciate your contribution.

---

<div class="post-metadata">

**Author:** ![HappyDave](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HappyDave](https://forums.unrealengine.com/u/HappyDave)\
**Post date:** [July 18, 2014, 12:20pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/3 "2014-07-18T12:20:02Z")

</div>

Great Work! I appreciate your contribution ^^

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64c55f0b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64c55f0b](https://forums.unrealengine.com/u/anonymous_user_64c55f0b)\
**Post date:** [August 7, 2014, 5:46pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/4 "2014-08-07T17:46:03Z")

</div>

Can’t save my map after I add a blueprint using JSON. I clear out the reference to the object whenever it’s used but I still get the following error:

```auto

Can't save B:/Workspaces/Unreal 4/FirstPlayground/Content/Maps/Example_Map.umap: Graph is linked to object(s) in external map.
External Object(s):
VaRestRequestJSON_27
/Engine/Transient
  
Try to find the chain of references to that object (may take some time)?

```

Constructor

 ![oyIctEP.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/b/1ba7425598cb96f84e279525da17941950e887ae.png)

Events

 ![C1XoamF.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/a/eaaee75e16dfa5569bd4e062e72a3aa202726fbb.png)

Let me know if you need more information.

---

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [August 8, 2014, 6:32am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/5 "2014-08-08T06:32:52Z")

</div>

> [@Veovis Muad'dib;113233](#):
>
> Can’t save my map after I add a blueprint using JSON. I clear out the reference to the object whenever it’s used but I still get the following error:

You shouldn’t create requests in constructor. Just do the same logic in BeginPlay and it should be okay.

Btw I’ll take a look how I can improve it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64c55f0b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64c55f0b](https://forums.unrealengine.com/u/anonymous_user_64c55f0b)\
**Post date:** [August 8, 2014, 8:05am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/6 "2014-08-08T08:05:42Z")

</div>

That solved it, thanks. I was going to have to move it to a function sooner or later anyway.

If you don’t mind do you know the technical reason why?

---

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [August 9, 2014, 6:47pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/7 "2014-08-09T18:47:44Z")

</div>

> [@Veovis Muad'dib;113670](#):
>
> That solved it, thanks. I was going to have to move it to a function sooner or later anyway.
> 
> If you don’t mind do you know the technical reason why?

Just a quote:

> [@joeGraf;114212](#):
>
> It’s safe to gameplay relevant code in BeginPlay. Constructor/PostInitializeProperties might be called when there is no world and are called on the default object. You definitely do not want to be spawning things that the CDO owns (Class Default Object), since the CDO exists outside of any world.

If you’ve created something in constructor, engine tries to save it, but fails because of new constucted request is transient.

---

<div class="post-metadata">

**Author:** ![Tom\_Looman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tom_looman/32/1215549_2.png) [@Tom\_Looman](https://forums.unrealengine.com/u/Tom_Looman)\
**Post date:** [August 10, 2014, 11:05pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/8 "2014-08-10T23:05:33Z")

</div>

Awesome. This should be super useful in the future when I get to deal with stats & server browsing!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64c55f0b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64c55f0b](https://forums.unrealengine.com/u/anonymous_user_64c55f0b)\
**Post date:** [August 11, 2014, 3:13pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/9 "2014-08-11T15:13:29Z")

</div>

> [@ufna;114895](#):
>
> If you’ve created something in constructor, engine tries to save it, but fails because of new constucted request is transient.

Thanks, that makes perfect sense. The thread the quote came from is also quite useful.

---

<div class="post-metadata">

**Author:** ![Ivey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivey](https://forums.unrealengine.com/u/Ivey)\
**Post date:** [August 12, 2014, 8:45pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/10 "2014-08-12T20:45:02Z")

</div>

I hope to see someone leverage this to do non-game stuff with UE4, even. My mind immediately goes to mapping or weather apps that serve REST data. Cmon - Someone make me an Unreal Engine weather clock app with tons of rad effects 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64c55f0b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64c55f0b](https://forums.unrealengine.com/u/anonymous_user_64c55f0b)\
**Post date:** [August 13, 2014, 3:59pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/11 "2014-08-13T15:59:25Z")

</div>

Complex terrain and mapping data with an overlaid real time weather simulation, allowing users to fly around and zoom in and out at will to better visualize incoming storms?

I want to see this.

---

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [August 15, 2014, 6:09am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/12 "2014-08-15T06:09:48Z")

</div>

Hey guys, I tried to add this to my 4.4 project and it wouldn’t launch, it just said it needed to be recompiled. So I did it, but then it said it was unable to recompile, then said something about it being incompatible with my version. Now I can’t turn off the plugin because I can’t launch the editor and I’m afraid I may have lost my work. Any thoughts?

---

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [August 15, 2014, 6:16am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/13 "2014-08-15T06:16:04Z")

</div>

> [@Jared Therriault;118641](#):
>
> Hey guys, I tried to add this to my 4.4 project and it wouldn’t launch, it just said it needed to be recompiled. So I did it, but then it said it was unable to recompile, then said something about it being incompatible with my version. Now I can’t turn off the plugin because I can’t launch the editor and I’m afraid I may have lost my work. Any thoughts?

Just remove plugin files manually (from Plugins) folder.

---

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [August 15, 2014, 3:13pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/14 "2014-08-15T15:13:11Z")

</div>

> [@ufna;118644](#):
>
> Just remove plugin files manually (from Plugins) folder.

Thank you for responding! That was my second plan of action, but it results in this when I try to launch the project:

![Untitled-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/0/60cc85391340e4aecafc8fee279f12973f7e50a1.png)

---

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [August 15, 2014, 4:46pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/15 "2014-08-15T16:46:13Z")

</div>

Nevermind, I figured out how to disable the plugin: [https://answers.unrealengine.com/questions/84205/disable-plugins-outside-of-editor.html](https://answers.unrealengine.com/questions/84205/disable-plugins-outside-of-editor.html)

Very much looking forward to the 4.4 binary!

---

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [August 16, 2014, 2:33pm UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/16 "2014-08-16T14:33:45Z")

</div>

I’ve just tested the plugin with UE 4.4.0, it doesn’t require any changes - you should just full recompile your game project and it will work.

I’ve prepared “pre-build” version too, you can get it here: [Release VaRest 1.1-rc6 · ufna/VaRest · GitHub](https://github.com/ufna/VaRest/releases/tag/1.1-rc6)

P.S. - Runtime plugins are not fully supported for content-only projects by engine! So, if you’re using plugins in Content only project you won’t be able to make Shipping build. I hope it will be improved in next releases ☹

---

<div class="post-metadata">

**Author:** ![Alarial](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alarial](https://forums.unrealengine.com/u/Alarial)\
**Post date:** [August 23, 2014, 3:42am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/17 "2014-08-23T03:42:19Z")

</div>

As promised (somewhere or other), I’ve uploaded the project I created that won me the prize of “most entertaining” at the last hackathon I attended. I utilized the VaRest plugin to hit Best Buy’s API and do some dynamic processing on it. This was more of a proof of concept for me, but it may be useful for someone that wants to see exactly how to implement these blueprint nodes in their project.

I’ve open sourced the project here: [https://github.com/alarial/BlastBestBuy](https://github.com/alarial/BlastBestBuy)

---

<div class="post-metadata">

**Author:** ![bigzer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bigzer](https://forums.unrealengine.com/u/bigzer)\
**Post date:** [October 22, 2014, 10:29am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/18 "2014-10-22T10:29:49Z")

</div>

Likely a silly question but can a POST also get an answer back like GET do?

Example: I send a userID through a POST and I get the user’s name and age for example?

---

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [October 23, 2014, 12:14am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/19 "2014-10-23T00:14:10Z")

</div>

Once you made a POST request you will get the answer. You can put into anything you want 🙂

---

<div class="post-metadata">

**Author:** ![bigzer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bigzer](https://forums.unrealengine.com/u/bigzer)\
**Post date:** [October 23, 2014, 7:04am UTC](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725/20 "2014-10-23T07:04:48Z")

</div>

Great, thank you.

How does authentication typically happen with a REST API using UE4 and your plugin?

Our game will release on Steam which has a WEB API to authenticate users.

The way it works is like this:  
On the client the user requests a token to Steam  
The client receives it and give it to our REST server  
The REST server sends it to Steam and steam confirms this user owns the game.

From there it seems we have to handle everything ourselves.

In our game for instance once we know he owns our game we want to allow him to perform a series of operations on the REST API through POST. The problem I see are the following:

1. What should you do on the REST web server to remember who is authenticated and who isn’t? Is this the job of SSL or some other HTML authentication method?
2. How do you prevent hackers to forge a JSON request manually and POST it on the REST API?

Lastly, do you have a Paypal donation page, we’ll very likely use your plugin 🙂

[Next page](https://forums.unrealengine.com/t/plugin-http-s-rest-blueprintable-json-query-and-parse-api-manager-varest/7725.md?page=2)
