This application creates a new service routine by calculating every step time count with start value for each service. Application also has several features like to clear the service timer and set the status accordingly, pause the service and modify the time as well as rendering feature to fetch all the service details in an HTML page.
-
Create a new service
- Creates a new service routine with an unique identifier
- Starts calculating every step time seconds depending on start value
-
Check service with service id passed
- Retrieves the service details by matching service id passed by the user
-
Check service without the service id
- Retrieves all the service details present in the system
-
Render service in HTML page
- Retrieves all the service details from the database and displays as HTML page
-
Clear the service
- Sets the service timer to 0 and sets the status to "Stopped" in database
-
Pause the service
- Pauses a given service and modifies the time in database to reflect the API response
- create.py -- Creates a new service routine with an unique identifier, Starts calculating every step time seconds depending on start value
- check.py -- Retrieves the service details by matching service id passed by the user else returns all the services in the system
- render.py -- Retrieves all the service details from the database and displays as HTML page
- clear.py -- Sets the service timer to 0 and sets the status to "Stopped" in database
- pause.py -- Pauses a given service and modifies the time in database to reflect the API response
- Python 3.x
- AWS Lambda
- Amazon API Gateway
- Amazon DynamoDB
- create -- https://(hostname).execute-api..amazonaws.com/dev/create (POST)
- check -- https://(hostname).execute-api..amazonaws.com/dev/check?id=<routine_id> (GET)
- clear -- https://(hostname).execute-api..amazonaws.com/dev/clear?id=<routine_id> (POST)
- pause -- https://(hostname).execute-api..amazonaws.com/dev/pause?id=<routine_id> (POST)
- render -- https://(hostname).execute-api..amazonaws.com/dev/render (GET)
- Table Name - Routine_Service
- Primary Key - routine_id
- Attributes - stepTimeCount, startval, steptime, creation_time, service_status, modifiedAt