<commit_before># Export

Since LegionBoard Heart 0.2.1,
the API provides the option to export all data in one request.
It includes all resources except activities.

```
GET /export?[...]
```

Parameters:

- `startBy` - Date when list of changes starts (YYYY-MM-DD) (Default: now)
- `endBy` - Date when list of changes ends (YYYY-MM-DD) (Default: i1w)

## Success

HTTP status: `200 OK`

```json
{
	"resources":{
		"changes":[
			{
			"id":"2",
			"startingDate":"2017-04-25",
			"startingHour":"03",
			"endingDate":"2017-04-26",
			"endingHour":"",
			"type":"0",
			"course":"0",
			"teacher":"1",
			"coveringTeacher":"0",
			"text":"",
			"subject":"2",
			"reason":"1",
			"privateText":"",
			"added":"2017-04-24 17:30:40",
			"edited":"2017-04-24 17:30:40"
			}
		],
		"courses":null,
		"subjects":[
			{
			"id":"2",
			"name":"Mathematics",
			"shortcut":"Mat",
			"archived":false,
			"added":"2017-04-24 17:30:57",
			"edited":"2017-04-24 17:31:25"
			}
		],
		"teachers":[
			{
			"id":"1",
			"name":"Miller",
			"subjects":"2",
			"archived":false,
			"added":"2017-04-24 17:32:37",
			"edited":"2017-04-24 17:32:37"
			}<commit_msg>Update example in export documentation<commit_after># Export

Since LegionBoard Heart 0.2.1,
the API provides the option to export all data in one request.
It includes all resources except activities.

```
GET /export?[...]
```

Parameters:

- `startBy` - Date when list of changes starts (YYYY-MM-DD) (Default: now)
- `endBy` - Date when list of changes ends (YYYY-MM-DD) (Default: i1w)

## Success

HTTP status: `200 OK`

```json
{
	"resources":{
		"changes":[
			{
				"id":"2",
				"startingDate":"2017-04-25",
				"startingHour":"03",
				"endingDate":"2017-04-26",
				"endingHour":"",
				"type":"0",
				"course":"0",
				"teacher":"1",
				"coveringTeacher":"0",
				"text":"",
				"subject":"2",
				"reason":"1",
				"privateText":"",
				"added":"2017-04-24 17:30:40",
				"edited":"2017-04-24 17:30:40"
			}
		],
		"courses":[
			{
				"id":"1",
				"name":"Q3 Sport 09",
				"subjects":null,
				"archived":false,
				"added":"2017-04-24 16:30:40",
				"edited":"2017-04-24 16:30:40"
			},
			{
				"id": "2",
				"name": "11-1",
				"subjects": "3,4,7",
				"archived": false,
				"added": "2017-04-24 16:38:40",
				"edited": "2017-04-24 16:39:40"
			},
		]
		"subjects":[
			{
				"id":"2",
				"name":"Mathematics",
				"shortcut":"Mat",
				"archived":false,
				"added":"2017-04-24 17:30:57",
				"edited":"2017-04-24 17:31:25"
			}
		],
		"teachers":[
			{
				"id":"1",
				"name":"Miller",
				"subjects":null,
				"archived":false,
				"added":"2017-04-24 17:32:37",
				"edited":"2017-04-24 17:32:37"
			},
			{
				"id":"3",
				"name":"Weber",
				"subjects":"2",
				"archived":false,
				"added":"2017-04-24 17:34:37",
				"edited":"2017-04-24 17:34:37"
			}
{'fraction_non_alphanumeric': 0.23500352858151025, 'fraction_numerical': 0.11785462244177841, 'mean_word_length': 3.108695652173913, 'pattern_counts': {'":': 82, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2088958', 'n_tokens_mistral': 1600, 'n_tokens_neox': 1123, 'n_words': 218}