design APIs using HTTP methods

design APIs using HTTP methods


0

I was was below question in Netskope system design interview recently i.e. design APIs for below functionalities (full URL path with HTTP method) and I could not answer well so I was rejected. I pasted my solution below. I could not find a solution using google search. Can you please provide some solution?

1. Create Virtual Machine
2. Reboot Virtual Machine
3. Shutdown Virtual Machine

My solution

POST www.netskope.com/v1/create_vm/args?machineid="ABC"
POST www.netskope.com/v1/reboot_vm/args?machineid="ABC"
POST www.netskope.com/v1/shutdown_vm/args?machineid="ABC"

Share


Load 7 more related questions


Show fewer related questions

0

Reset to default



Leave a Reply

Your email address will not be published. Required fields are marked *