Skeleton of agents module
- Jose Emilio Labra Gayo (@labra)
- Alejandro González Hevia (@alejgh)
- Carmen Sors González (@carmee-en)
- Alvaro Tejido Jardón (@tejido18)
- Eduardo Ulibarri Toledo (@uo251436)
- Herminio García González (@herminiogg)
- Jose Emilio Labra Gayo (@labra)
- Jorge Zapatero Sánchez (@JorgeZapa)
- Damián Rubio Cuervo (@DamianRubio)
- Antonio Nicolás Rivero Gómez (@Lan5432)
This project uses MongoDB as the database. You can check how to use it on
This project uses Jasypt to encrypt the passwords. You don't need to download it, but you can check it at: http://www.jasypt.org/
In order to use the user credentials to obtain your data, you can send a POST request to http://localhost:8080/user. The data in this request can come as:
- JSON:
{"login":"yourLogin", "password":"yourpassword", "kind":"agentKind"}
- XML:
<data>
<login>yourLogin</login>
<password>yourPassword</password>
<agent>agentKind</kind>
</data>
To run the tests just use mvn test
. No data in the database is needed to run them. But if you want to test the
agent interface manually you'll have to introduce this document:
{
"_id" : ObjectId("58a8670df086e81dc034d7fc"),
"name" : "Paco",
"email" : "paco@naver.co.kr",
"location" : [
157,
256
],
"kind" : "Person",
"username" : "pruebas",
"password" : "khZZwjdhWwVbMdmOvz9eqBfKR1N6A+CdFBDM9c1dQduUnGewQyPRlBxB4Q6wT7Cq"
}
And as data use:
- login: pruebas
- password: 4[[j[frVCUMJ>hU
- kind: "Person"
If you have the data and the database running and the application still reports a 404 Not Found when it shouldn't try deleting the document and adding it again.