This micro-service shows with the EVA format the answer with the previously articles selected without the last eliminated.
- GitLab
- Visual Studio Code
- Google Cloud Platform
- Python 3.8
- Postman
We have two modes to prove this micro-service : Local-mode and Cloud-function-mode
- Go to the main.py file, delete the word "self" from the line 47 in test_functions
- Execute the main.py file
- Go to Postman with the "POST" method
- Put the url with the function name "eliminar_seleccion" example: https://127.0.0.1:8002/eliminar_seleccion
- Put the request format in Body-> Raw -> JSON
- Copy the url generated by the Cloud funtion and paste in to the Postman input in the "POST" method
- Put the request format in Body-> Raw -> JSON
Request format from Json body:
{
"hiddenContext": {
"listaMaterialesSeleccionados": [
{
"code": "LETRERO",
"quantity": "1",
"text": "Letrero abierto-cerrado"
},
{
"code": "VUELTERO",
"quantity": 1,
"text": "Vueltero acrílico"
}
]
},
"openContext": {
"del_code": "VUELTERO"
},
"visibleContext": {}
}
Private software.