# Version 2 (Json)

A few policies are relevant for this: [REST Policies](https://docs.tsnocode.com/books/policy-reference/page/rest-webservice)

Policy "restActive" must be true.

Policy "restBasicAuthentication" must be true to allow Basic authentication [See wikipedia](https://en.wikipedia.org/wiki/Basic_access_authentication)

If REST calls are made from the browser via a logged-in user and Basic auth is not used, the calls will be made with the credentials of the user.

Download the swagger file from:

```
https://<server>/<application>/rest/v2/swagger.json
```

You can browse and try the api, using the built in SwaggerUI (from version 9147):

```
https://<server>/<application>/rest/v2/swagger
```

GET examples:

Single:

```
https://<server>/<application>/rest/v2/<entity>/<DataID>
```

List:

```
https://<server>/<application>/rest/v2/<entity>
```