How to generate the API of my Site using vb.net?
How to generate the API of my Site ... www.volvobusesindia.com so that i can provide my site API to agents so tha开发者_StackOverflowt cthey can vbook tickets using our API ?
i want the bus booking search box appear in the site will be displayed in others website ?
- You need to either create WCF SOAP based webservices or WCF REST based services.
- You then need to publish these on a web server so it can be accessed by the agents.
- You need to document all the API methods and parameters so it is easy for the agents to use your services.
- You also need to have an authentication/authorization system in place to ensure your services are used only by the authorized agents.
Actually, you have to have the 'API' first, and then you build your website as a front-end to the API.
An API is just a set of public methods. That's all. For a desktop application, these methods will be in a dll. For a web application these methods will be Web Service, or HTTP Get or HTTP Post methods. API is just a nice name for this.
You then document all the calls available. You use the document to build your website, and you give the documents to others so they can build their website.
The API is the foundation of the system.
精彩评论