<commit_before># cesmaccloud

How to generate bundle.zip used on AWS Elastic Beanstalk:

```
jar cMf bundle.zip src conf Procfile Buildfile pom.xml

```


## Eclipse configuration

In the root path of the project use the follows commands :

```
mvn eclipse:clean
mvn eclipse:eclipse
```


# Endpoints

## Get all todos

### Request:

**URL:**

```
GET: /todo
```

**Response**

```
[
	{
		title: "title",
		id: 1
	},
	{
		title: "title 2",
		id: 2
	}
]
```

## Get a todo

### Request:

**URL:**

```
GET: /todo/:title
```

**Response:**

```
{
	title: "title",
	id: 1
}
```



## Create a todo

### Request:

**URL:**

```
POST: /todo
```
<commit_msg>Add postman url on the readme<commit_after># cesmaccloud

How to generate bundle.zip used on AWS Elastic Beanstalk:

```
jar cMf bundle.zip src conf Procfile Buildfile pom.xml

```


## Eclipse configuration

In the root path of the project use the follows commands :

```
mvn eclipse:clean
mvn eclipse:eclipse
```

## How to test endpoints

You can import a collection on Postman [here](https://www.getpostman.com/collections/d4ee5b4f401a78ef557c).


# Endpoints

## Get all todos

### Request:

**URL:**

```
GET: /todo
```

**Response**

```
[
	{
		title: "title",
		id: 1
	},
	{
		title: "title 2",
		id: 2
	}
]
```

## Get a todo

### Request:

**URL:**

```
GET: /todo/:title
```

**Response:**

```
{
	title: "title",
	id: 1
}
```


## Create a todo

### Request:

**URL:**

```
POST: /todo
```

{'fraction_non_alphanumeric': 0.18844566712517194, 'fraction_numerical': 0.013067400275103164, 'mean_word_length': 3.395770392749245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 2}, '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': '1100858', 'n_tokens_mistral': 628, 'n_tokens_neox': 562, 'n_words': 163}