How To Build Api In Javascript