This microservice works as a service cell in the EVA format which can take different paths for the flow to continue. The paths are:
- AGREGAR_MAS_PRODUCTOS: Jump to the flow that shows the products.
- ELIMINAR_PRODUCTO: Delete a product from the list.
- CONFIRMAR_SELECCION: It goes to another service cell with the processed information.
- 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 41 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/identificar_seleccion
- Put the request format in Body-> Raw -> JSON
Formato del request body:
Example: AGREGAR_MAS_PRODUCTOS
{
{
"openContext":{
"accion": "AGREGAR_MAS_PRODUCTOS"
},
"visibleContext":{},
"hiddenContext":{}
}
- 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.