Kotlin Spring Boot on GCP App Engine Standard
Deploy locally
git clone https://github.com/mvladoi/sinch-task.git
cd springboot
mvn spring-boot:run
7. Api implemented :
- a.
Action HTTPS
Verb POST
URL Path sinch-assignment/all-pairs
Description Exercise 1
- b.
Action HTTPS
Verb POST
URL Path sinch-assignment/polish-notation
Description Exercise 2
Running Time
-
All pair is the coding exercise :
Count pairs with given sum
O(n) time -
Polish notation is the coding exercise:
Evaluation of Prefix Expressions
O(n) time
To test it on GCP APP Engine
curl -X POST https://fresh-metrics-266911.uc.r.appspot.com/sinch-assignment/all-pairs --data-binary @sinch/springboot/input_files/all_pairs/file1 -H "Content-Type: application/javascript"
curl -X POST https://fresh-metrics-266911.uc.r.appspot.com/sinch-assignment/polish-notation --data-binary @sinch/springboot/input_files/polish_notation/file1 -H "Content-Type: application/javascript"