AGL Energy interview question

Design a simple API in .net