Challenge 2: REST API

## REST API for Messages

### CREATE Message
Creates & sends a encrypted message and returns id if valid

Example:
```
curl -X POST -H "email: fer@ferqwerty.com"  -H "message: Hire me, please"   -H "password: f3rn4nd0" http://localhost:3000/api/message
```
Result:
```
{
    "id": "50f8c264e91b7301abd15f5b4839d73b"
}
```

### GET Message
Gets message(id)

Example:
```
curl -X GET -H "password: f3rn4nd0" http://localhost:3000/api/message/50f8c264e91b7301abd15f5b4839d73b
```

Result:
```
{
   "id": "50f8c264e91b7301abd15f5b4839d73b",
   "email": "fer@ferqwerty.com",
   "message": "Hire me, please"
}
```


### DELETE Message
Deletes message(id)

Example:
```
curl -X DELETE http://localhost:3000/api/message/50f8c264e91b7301abd15f5b4839d73b
```
Result:
```
{
   "message": "Message deleted with id: 50f8c264e91b7301abd15f5b4839d73b"
}
```