DotNetKicks JSON Services (alpha)(dotnetkicks.com)

submitted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago

I've just deployed the first set of DotNetKicks JSON services. Have a gander at these initial operations and let me know what you think of the schema.

7 comments |category: |Views: 60

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago 0

These services are provided using Jayrock : http://jayrock.berlios.de/.

There is a test page at http://www.dotnetkicks.com/services/json/jsonservices.ashx?test

The operations are as follows:

getPopularStories()
getPopularStoriesPaged(pageNumber, pageSize)
getPopularStoriesPagedAndSorted(pageNumber, pageSize, sortBy)
getUpcomingStories()
getUpcomingStoriesPaged(pageNumber, pageSize)
getUpcomingStoriesPagedAndSorted(pageNumber, pageSize, sortBy)

The sortBy parameter accepts the following values:

Today,
PastWeek,
PastMonth,
PastYear,
AllTime,

Reply

posted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago 0

Here is the issue on google code : http://code.google.com/p/dotnetkicks/issues/detail?id=95

Reply

posted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago 0

It is hard to infer the message schema from the actual messages. Here are the message classes:

http://dotnetkicks.googlecode.com/svn/trunk/DotNetKicks/Incremental.Kick/Dal/Entities/DataTransferObjects/

Reply

posted by johnmanjohnman(1280) 4 years, 4 months ago 0

Hi Gavin,

Out of curiousity why did you drop ajaxpro? Was there a reason for not using asp.net ajax? I remember someone asking if you were going to do a blog posting about your decision. I'd like to +1 that (if and when you have the time).

Cheers,

John

Reply

posted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago 0

Atif Aziz contacted me suggesting that I try Jayrock as an alternative to AJAX.NET Pro.

There are a number of things that I like about Jayrock - its simplicity, its 537 unit tests and 75% code coverage, JSONP support and test UI pages.

I have only had brief experience with ASP.NET AJAX but I'm no longer a fan of the ASP.NET postback model and try to stay away from it as much as possible. ASP.NET AJAX seemed to abstract, since working with rails I appreciate working at a lower level.

I still plan to write a blog post on Jayrock after I explore it more.

Reply

posted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago 0

I recently updated to the latest build of Jayrock. This version supports JSONP, allowing us to easily build widgets that can plug in to external sites without cross-site scripting problems. Here is an example call:

http://www.dotnetkicks.com/services/json/jsonservices.ashx/getPopularStoriesPaged?pageNumber=2&pageSize=4&jsonp=loadData

To use, please see:

http://groups.google.com/group/jayrock/msg/d688bc572e5220ad

Reply

posted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago 0

I've just deployed the latest set of JSON operation. We now have:

getFrontPageStories()
Returns a list of the most popular pubished stories from the last 30 days
getPopularStories()
Returns a list of the most popular pubished stories from the last 30 days
getPopularStoriesPaged(pageNumber, pageSize)
Returns a paged list of the most popular pubished stories from the last 30 days
getPopularStoriesPagedFromTimePeriod(pageNumber, pageSize, timePeriod)
Returns a paged list of the most popular pubished stories from a time period
getTaggedStories(tag)
Returns a list of the most recent stories tagged with a tag
getTaggedStoriesPaged(tag, pageNumber, pageSize)
Returns a paged list of the recent stories tagged with a tag
getUpcomingStories()
Returns a list of the most popular upcoming stories from the last 30 days
getUpcomingStoriesPaged(pageNumber, pageSize)
Returns a paged list of the most popular upcoming stories from the last 30 days
getUpcomingStoriesPagedFromTimePeriod(pageNumber, pageSize, timePeriod)
Returns a paged list of the most popular upcoming stories from a time period
getUserFriendsKickedStories(username)
Returns a list of the most recent stories kicked by a user's friends
getUserFriendsKickedStoriesPaged(username, pageNumber, pageSize)
Returns a paged list of the most recent stories kicked by a user's friends
getUserFriendsSubmittedStories(username)
Returns a list of the most recent stories submitted by a user's friends
getUserFriendsSubmittedStoriesPaged(username, pageNumber, pageSize)
Returns a paged list of the most recent stories submitted by a user's friends
getUserKickedStories(username)
Returns a list of the most recent stories kicked by a user
getUserKickedStoriesPaged(username, pageNumber, pageSize)
Returns a paged list of the most recent stories kicked by a user
getUserSubmittedStories(username)
Returns a list of the most recent stories submitted by a user
getUserSubmittedStoriesPaged(username, pageNumber, pageSize)
Returns a paged list of the most recent stories submitted by a user

Reply

information Login or create an account to comment on this story