.net - How to create an APi in C#? -


i have been doing programming, i'm facing challenge. i'm on project have create api in c# users. basic process have c# code i'm reading xml file , obtaining attributes , values between tags. achieved , have create consumable api same functionality. there way through can learn create api?

basically dont have idea on how move on api. sort of examples of use me.

an api way other programmers interface code. c# class library api, web service, wcf endpoint, etc. easiest way make 1 create c# class library project, make sure has public methods, , compile .dll can distribute.

as mentioned others, framework design guidelines useful rules follow.

one thing keep in mind - , wish hammered new software developers - api design fundamentally usability problem. you're building ui users of software, , users other programmers.

this means want follow general principals of ui/ux design - discoverability, making common tasks simple, etc.

take advantage of xml comments make sure documentation there. sure common tasks easy perform , it's obvious how so. make exceptions clean , include useful, actionable error messages. think make consumer's life easier.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -