<a name="_d763d1a104c2834658076a943c4a12c137b744b919776f353057e22df40d713f"></a>
[![npm](https://img.shields.io/npm/v/@acoustic-content-sdk/rest-api.svg?style=flat-square)](https://www.npmjs.com/package/@acoustic-content-sdk/rest-api)

Definition of interfaces for services and components that use the REST API of Acoustic Content.

## API Documentation

[API Documentation](#_9aee8ec86cfbb085246057013459c4ebe9866c607fe2a30cbd50e21bc78f3a19)

<a name="_9aee8ec86cfbb085246057013459c4ebe9866c607fe2a30cbd50e21bc78f3a19"></a>
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](#_e229d330d56c7d75dbd24371049780c6a52bae7ca3e094eac13228a02018ad24) &gt; [@acoustic-content-sdk/rest-api](#_9aee8ec86cfbb085246057013459c4ebe9866c607fe2a30cbd50e21bc78f3a19)

## rest-api package

Definition of interfaces for services and components that use the REST API of Acoustic Content.

## Enumerations

|  Enumeration | Description |
|  --- | --- |
|  [FETCH\_PRIORITY](#_fa1365076db709be05efdc0d76b4280905e2a47d5925c6ddd55db1e46b96607e) | Priority of the actual request |

## Variables

|  Variable | Description |
|  --- | --- |
|  [VERSION](#_8fe45cdeb6c4e40207c6e9ba29252963ebfb5f8670c38d1909c1596d38357bb6) | Version and build number of the package |

## Type Aliases

|  Type Alias | Description |
|  --- | --- |
|  [FetchText](#_dbe24c41dd0742fd37b844ec8080b14d3f1a872d0b30e8bc5b2894ee414b36ad) | Callback interface used to make a GET request to the resource and to ask for text content.<!-- -->The URL can be a relative URL and will be resolved against the API URL |
|  [WriteText](#_4b6ba1c060520c19477e484dc96b7785bed894252eb75a8e4656f76b2b920f6a) | Callback interface used to send data to the server.<!-- -->The URL can be a relative URL and will be resolved against the API URL |


<a name="_d763d1a104c2834658076a943c4a12c137b744b919776f353057e22df40d713f"></a>

<a name="_fa1365076db709be05efdc0d76b4280905e2a47d5925c6ddd55db1e46b96607e"></a>
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](#_e229d330d56c7d75dbd24371049780c6a52bae7ca3e094eac13228a02018ad24) &gt; [@acoustic-content-sdk/rest-api](#_9aee8ec86cfbb085246057013459c4ebe9866c607fe2a30cbd50e21bc78f3a19) &gt; [FETCH\_PRIORITY](#_fa1365076db709be05efdc0d76b4280905e2a47d5925c6ddd55db1e46b96607e)

## FETCH\_PRIORITY enum

Priority of the actual request

<b>Signature:</b>

```typescript
export declare enum FETCH_PRIORITY 
```

## Enumeration Members

|  Member | Value | Description |
|  --- | --- | --- |
|  HIGH | <code>2</code> |  |
|  LOW | <code>0</code> |  |
|  NORMAL | <code>1</code> |  |


<a name="_8fe45cdeb6c4e40207c6e9ba29252963ebfb5f8670c38d1909c1596d38357bb6"></a>
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](#_e229d330d56c7d75dbd24371049780c6a52bae7ca3e094eac13228a02018ad24) &gt; [@acoustic-content-sdk/rest-api](#_9aee8ec86cfbb085246057013459c4ebe9866c607fe2a30cbd50e21bc78f3a19) &gt; [VERSION](#_8fe45cdeb6c4e40207c6e9ba29252963ebfb5f8670c38d1909c1596d38357bb6)

## VERSION variable

Version and build number of the package

<b>Signature:</b>

```typescript
VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}
```

<a name="_dbe24c41dd0742fd37b844ec8080b14d3f1a872d0b30e8bc5b2894ee414b36ad"></a>
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](#_e229d330d56c7d75dbd24371049780c6a52bae7ca3e094eac13228a02018ad24) &gt; [@acoustic-content-sdk/rest-api](#_9aee8ec86cfbb085246057013459c4ebe9866c607fe2a30cbd50e21bc78f3a19) &gt; [FetchText](#_dbe24c41dd0742fd37b844ec8080b14d3f1a872d0b30e8bc5b2894ee414b36ad)

## FetchText type

Callback interface used to make a GET request to the resource and to ask for text content.

The URL can be a relative URL and will be resolved against the API URL

<b>Signature:</b>

```typescript
export declare type FetchText = (aUrl: string, aPriority?: FETCH_PRIORITY) => Observable<string>;
```

<a name="_4b6ba1c060520c19477e484dc96b7785bed894252eb75a8e4656f76b2b920f6a"></a>
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](#_e229d330d56c7d75dbd24371049780c6a52bae7ca3e094eac13228a02018ad24) &gt; [@acoustic-content-sdk/rest-api](#_9aee8ec86cfbb085246057013459c4ebe9866c607fe2a30cbd50e21bc78f3a19) &gt; [WriteText](#_4b6ba1c060520c19477e484dc96b7785bed894252eb75a8e4656f76b2b920f6a)

## WriteText type

Callback interface used to send data to the server.

The URL can be a relative URL and will be resolved against the API URL

<b>Signature:</b>

```typescript
export declare type WriteText = (aUrl: string, aBody: any, aPriority?: FETCH_PRIORITY) => Observable<any>;
```
