# Get the WoT validation config

`GET /devops/wot/config`

Authentication (security requirement alternatives):

```json
[
  {
    "DevOpsBasic": []
  },
  {
    "DevOpsBearer": []
  }
]
```

- DevOpsBasic: http (basic). Eclipse Ditto devops user (devops) + password (foobar)
- DevOpsBearer: http (bearer). A JSON Web Token issued by a supported OAuth 2.0 Identity Provider for the Eclipse Ditto devops user.

Responses:

- 200: The WoT validation configuration.

Content type: application/json

Type: WotValidationConfig

WoT validation configuration object.

Schema: [WotValidationConfig](https://sourcey-ditto.pages.dev/http-api-doc/models/wotvalidationconfig.md)

- `configId` (required)
  Type: string
  
  The unique ID of the config.

- `enabled` (optional)
  Type: boolean
  
  Whether WoT validation is enabled globally. Defaults to true if not specified.

- `log-warning-instead-of-failing-api-calls` (optional)
  Type: boolean

- `thing` (required)
  Reference: [ThingValidationConfig](https://sourcey-ditto.pages.dev/http-api-doc/models/thingvalidationconfig.md); Type: ThingValidationConfig
  
  Thing validation config.

- `feature` (required)
  Reference: [FeatureValidationConfig](https://sourcey-ditto.pages.dev/http-api-doc/models/featurevalidationconfig.md); Type: FeatureValidationConfig
  
  Feature validation config.

- `dynamic-config` (optional)
  Type: Array<DynamicValidationConfig>
  
  Items:
    Reference: [DynamicValidationConfig](https://sourcey-ditto.pages.dev/http-api-doc/models/dynamicvalidationconfig.md); Type: DynamicValidationConfig
    
    Dynamic config section for request/response.

- `revision` (optional)
  Type: integer, int64

- `created` (optional)
  Type: string, date-time

- `modified` (optional)
  Type: string, date-time

- `deleted` (optional)
  Type: boolean

- `metadata` (optional)
  Type: object

- 404: Not found

## Examples

### cURL

```bash
curl -X GET 'https://ditto.eclipseprojects.io/devops/wot/config' \
  -H 'Authorization: Basic WU9VUl9VU0VSTkFNRTpZT1VSX1BBU1NXT1JE'
```

### JavaScript

```javascript
const response = await fetch('https://ditto.eclipseprojects.io/devops/wot/config', {
  method: 'GET',
  headers: {
    'Authorization': 'Basic WU9VUl9VU0VSTkFNRTpZT1VSX1BBU1NXT1JE',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'https://ditto.eclipseprojects.io/devops/wot/config',
    headers={
        'Authorization': 'Basic WU9VUl9VU0VSTkFNRTpZT1VSX1BBU1NXT1JE',
    },
)
print(response.text)
```
