# REST Plugin - v1.8.0.0 released!

**URL:** https://community.linx.software/community/t/rest-plugin-v1-8-0-0-released/523
**Category:** Feature
**Created:** [March 12, 2021, 9:53am UTC](https://community.linx.software/community/t/rest-plugin-v1-8-0-0-released/523 "2021-03-12T09:53:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ronan](https://community.linx.software/community/user_avatar/community.linx.software/ronan/32/433_2.png) [@ronan](https://community.linx.software/community/u/ronan)
#### Post date: [March 12, 2021, 9:53am UTC](https://community.linx.software/community/t/rest-plugin-v1-8-0-0-released/523/1 "2021-03-12T09:53:54Z")

</div>

The latest version ( _v1.8.0.0_ ) of the [RESTPLG](https://linx.software/docs/reference/plugins/rest/overview) has been released with the following changes.

 **Note:**  
  
 Full release note history for the REST plugin can be found [**here**](https://linx.software/docs/releasenotes/plugins/rest/). 

## Feature upgrades

### Expose raw request body of incoming requests

The incoming raw request body for [RESTHostSVC](https://linx.software/docs/reference/plugins/rest/content/resthost) and [SimpleRESTHostSVC](https://linx.software/docs/reference/plugins/rest/content/simpleresthost) operations is now also available as an additional string property that is part of the input data object within all the events and operations of your REST web service.

Previously, request bodies were automatically parsed into structured types in Linx indicated by your operations definition. This structured data object was only available inside the specific operation. However, sometimes you may also need access to the raw request body before it was parsed by Linx or before the operation executes.

To access the raw request body in a REST operation or event, reference the below data object:

```auto
$.Parameters.Data.HttpContext.Body

```

 ![image](https://community.linx.software/community/uploads/default/original/2X/c/c7e1e6b09beaeaa70b3b4450625ca107a8078d70.png)

### Sorting of operation names

Operation names in the SimpleRESTHost service operation editor GUI are now ordered alphabetically, matching the display in the Solution Explorer.

> 💡 Read more about automatic API documentation generation [here](https://community.linx.software/community/t/api-documentation-generation/472).

**v1.7.0.0:**

 ![image](https://community.linx.software/community/uploads/default/original/2X/f/f810184f768b721f8295b5e87ef36eb90c199924.png)

**v.1.8.0.0:**

 ![image](https://community.linx.software/community/uploads/default/original/2X/d/d0c08e2e5b9fff8d36b8a78f175cef61ae2cff87.png)

## Bug fixes

### Schema names in documentation generation:

Custom types used in the SimpleRESTHost service display additional characters in the automatically generated documentation.

**v1.7.0.0:**

 ![image](https://community.linx.software/community/uploads/default/original/2X/6/694f745a33d50b998afd376ebaf131fd5b664646.png)

**v1.8.0.0:**

 ![image](https://community.linx.software/community/uploads/default/original/2X/b/bb42cff067c29a5f859b852af5280141779c3fee.png)

### XML request bodies

In _v1.7.0.0_, requests made to RESTHost operations configured to receive XML payloads were rejected with a `(415) Unsupported Media Type`, this has now been addressed in _v1.8.0.0_.

### DateTime input parameters

In _v1.7.0.0_, date values (`yyyy-MM-dd`) submitted as DateTime input parameters such as query values where incorrectly formatted when they were parsed by Linx. In _v1.8.0.0_, DateTime values submitted as just a date are now correctly formatted to UTC + locale timezone.

 **Note:**  
  
 More details on Linx server times can be found [**here**](https://community.linx.software/community/t/linx-server-time-utc-0/522).

Below are examples of a query parameter `mydate` with the value of `2020-12-23` being submitted as a DateTime query value:

**v1.7.0.0:**

The issue was that the incoming date was incorrectly converted to the local time zone first instead of UTC.

![image](https://community.linx.software/community/uploads/default/original/2X/5/5b71edb3ffa5d71a73d73e5e24315c82901c53a3.png)

**v1.8.0.0:**

Values submitted as DateTime parameters are now converted into UTC + your timezone i.e. +2

![image](https://community.linx.software/community/uploads/default/original/2X/2/21f5dd41059e1fb0fc5768c169359bd696dc9cec.png)
