The 2 Hour API
Main Points
- Writing an API for a website using something like Vue, React, or Angular to read or change
data in a database should only take 2 hours.
- There should only be between 5 to 15 lines of C# code.
- A half hour to write the C# code.
- A half hour to write the stored procedure.
- A half hour to test it.
- A half hour to document it.
- You create a C# controller method, have it call a stored procedure, and return the results back as JSON. 10 lines. You're done.