This micro-service shows with the format EVA the selection of materials with an answer transactional.
- 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 71 in test_functions
- Execute the main.py file
- Go to Postman with the "POST" method
- Put the url with the function name "guardar_seleccion" example: https://127.0.0.1:8002/mostrar_seleccion
- Put the request format in Body-> Raw -> JSON
Formato del request body:
{
"openContext":{
"add_code": "RESERVADO"
},
"visibleContext":{},
"hiddenContext":{
"listaMaterialesSeleccionados": [
{
"code": "RESERVADO",
"quantity": 1,
"text": "Reserva acrílico"
},
{
"code": "SERVILLETERO",
"quantity": 1,
"text": "Servilletero"
}
]
}
}
- 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
Private software.