<commit_before>Todo API
========

Set environments:

```
ENDPOINT="https://$HOST:$API_GATEWAY_SSL_PORT"
ITEM_ID="xxx"
# Here, the variables such as $HOST are defined in default.env in the central repository
```

Create an item:

```
curl -H "Accept:application/json" \
-H "Content-Type:application/json" \
-XPOST "$ENDPOINT/v1/todos" \
-d '{"title": "xxx"}'
```

List items:

```
curl $ENDPOINT/v1/todos
```

Get an item:

```
curl $ENDPOINT/v1/todos/$ITEM_ID
```

Update an item:

```
curl -H "Accept:application/json" \
-H "Content-Type:application/json" \
-XPUT "$ENDPOINT/v1/todos/$ITEM_ID" \
-d '{"title": "yyy"}'
```

Delete an item:

```
curl -H "Accept:application/json" \
-H "Content-Type:application/json" \
-XDELETE "$ENDPOINT/v1/todos/$ITEM_ID"
```

Move an item:

```
curl -H "Accept:application/json" \
-H "Content-Type:application/json" \
-XPOST "$ENDPOINT/v1/todos/$ITEM_ID/move" \
-d "{\"prior_sibling_id\": \"$PRIOR_SIBLING_ID\"}"
```<commit_msg>Fix documentation to add -k option for curl<commit_after>Todo API
========

Set environments:

```
# Load config environment
eval $(./init.sh | grep config_)

ENDPOINT="https://$config_host:$config_todo_api_gateway_port"
ITEM_ID="xxx"
# Here, the variables such as $HOST are defined in default.env in the central repository
```

Create an item:

```
curl -k -H "Accept:application/json" \
-H "Content-Type:application/json" \
-XPOST "$ENDPOINT/v1/todos" \
-d '{"title": "xxx"}'
```

List items:

```
curl -k $ENDPOINT/v1/todos
```

Get an item:

```
curl -k $ENDPOINT/v1/todos/$ITEM_ID
```

Update an item:

```
curl -k -H "Accept:application/json" \
-H "Content-Type:application/json" \
-XPUT "$ENDPOINT/v1/todos/$ITEM_ID" \
-d '{"title": "yyy"}'
```

Delete an item:

```
curl -k -H "Accept:application/json" \
-H "Content-Type:application/json" \
-XDELETE "$ENDPOINT/v1/todos/$ITEM_ID"
```

Move an item:

```
curl -k -H "Accept:application/json" \
-H "Content-Type:application/json" \
-XPOST "$ENDPOINT/v1/todos/$ITEM_ID/move" \
-d "{\"prior_sibling_id\": \"$PRIOR_SIBLING_ID\"}"
```
{'fraction_non_alphanumeric': 0.20721599219892736, 'fraction_numerical': 0.005850804485616773, 'mean_word_length': 4.208121827411167, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1497502', 'n_tokens_mistral': 861, 'n_tokens_neox': 822, 'n_words': 176}