PC Review


Reply
Thread Tools Rate Thread

How do I create an API for my website?

 
 
musosdev
Guest
Posts: n/a
 
      3rd Sep 2008
Hi guys

Bit of a generalist question, but I'm using ASP.net as my development
platform.

Basically, I have a website (an independent music store) and as well as the
normal functionality, I'd like to build in an API, so that other sites
(either asp.net or not) can query our data and get results back.

Simple question... where do I start?! Can anyone point me in the direction
of a "how to" (either technical or an overview of how an API should work).
It's something I've not explored before, so I haven't a clue.

Any help appreciated!


Dan
 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      3rd Sep 2008
"musosdev" <(E-Mail Removed)> wrote in message
news:899FCC82-9484-408A-81DF-(E-Mail Removed)...
> Hi guys
>
> Bit of a generalist question, but I'm using ASP.net as my development
> platform.
>
> Basically, I have a website (an independent music store) and as well as
> the
> normal functionality, I'd like to build in an API, so that other sites
> (either asp.net or not) can query our data and get results back.
>
> Simple question... where do I start?! Can anyone point me in the direction
> of a "how to" (either technical or an overview of how an API should work).
> It's something I've not explored before, so I haven't a clue.


I find it useful to think about how the API will be used. In order to do
this, I use the UML Use Case diagram. I model one Actor shape for each kind
of entity that might want to access the API, then create use case shapes and
connect the actors to the use cases they use. As analysis continues, I find
common pieces of functionality that are shared amongst use cases. A login
function will be common between "update stock" and "list available music"
use cases. I connect these to the main use cases through Include connectors.

When I've done with this, I find a certain number of use cases that are
directly accessed by actors, and a certain number that are only used by
other use cases. The ones that are directly accessed by actors are your API.

In terms of a web service (which I recommend you create), these are the
operations in your contracts.

You may find sets of use cases that seem to belong together. For instance,
one actor may reference one set that the others never reference. This would
indicate you should split the functionality into two services, one for the
one actor and another for the others.

I don't know if that helps you, but it works for me.
--
John Saunders | MVP - Connected System Developer

 
Reply With Quote
 
Hillbilly
Guest
Posts: n/a
 
      3rd Sep 2008
Web Services are widely used to expose methods and properties other
developers can use to access your data. Microsoft has some webcasts I once
started viewing that provide guidance on writing the classes for an API but
you'll have to do the work to find the series of 3-4 as I recall.

"musosdev" <(E-Mail Removed)> wrote in message
news:899FCC82-9484-408A-81DF-(E-Mail Removed)...
> Hi guys
>
> Bit of a generalist question, but I'm using ASP.net as my development
> platform.
>
> Basically, I have a website (an independent music store) and as well as
> the
> normal functionality, I'd like to build in an API, so that other sites
> (either asp.net or not) can query our data and get results back.
>
> Simple question... where do I start?! Can anyone point me in the direction
> of a "how to" (either technical or an overview of how an API should work).
> It's something I've not explored before, so I haven't a clue.
>
> Any help appreciated!
>
>
> Dan


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Affordable Ready-Made websites! User-friendly advanced website builder that lets nearly anyone create and handle a successful website quickly, and at a great price! advisorsunset Windows XP Internet Explorer 0 11th Apr 2006 05:41 PM
Create website =?Utf-8?B?QW5hbmQgUHJhc2Fk?= Microsoft Frontpage 3 12th Feb 2006 04:14 PM
Can I create a FrontPage website over an existing website? =?Utf-8?B?S2F0aHJ5blA=?= Microsoft Frontpage 1 28th Nov 2005 05:27 PM
Using ASP.net to create a website Joe_Black Microsoft ASP .NET 1 3rd Jun 2005 11:23 AM
Trying to create a website =?Utf-8?B?SmF5bmU=?= Microsoft Frontpage 2 16th Mar 2004 01:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:45 AM.