Skip to content

Service that allows integrating a service to show elements in a flow in eva.

Notifications You must be signed in to change notification settings

eva-library/service-show-selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

N|Solid

Microservice

Show Selection

This micro-service shows with the format EVA the selection of materials with an answer transactional.

Technologies

  • GitLab
  • Visual Studio Code
  • Google Cloud Platform
  • Python 3.8
  • Postman

¿How to start?

We have two modes to prove this micro-service : Local-mode and Cloud-function-mode

Local-mode

  1. Go to the main.py file, delete the word "self" from the line 71 in test_functions
  2. Execute the main.py file
  3. Go to Postman with the "POST" method
  4. Put the url with the function name "guardar_seleccion" example: https://127.0.0.1:8002/mostrar_seleccion
  5. 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"
            }
        ]
    }
}

Cloud-function-mode (Google Cloud -> Cloud Functions)

  1. Copy the url generated by the Cloud funtion and paste in to the Postman input in the "POST" method
  2. Put the request format in Body-> Raw -> JSON

License

Private software.

About

Service that allows integrating a service to show elements in a flow in eva.

Topics

Resources

Stars

Watchers

Forks

Languages