public
Description: Your favorite URL-shortening service in all of Ruby land
Homepage: http://rubyurl.com
Clone URL: git://github.com/robbyrussell/rubyurl.git
Adding a link on the API page to a gist with sample XML
Robby Russell (author)
Sun Aug 31 11:45:03 -0700 2008
commit  f31586b243bf0f47bd2c3356b1044f30d24592b9
tree    f8ce2a6c80077df1a191bb6431e438809717633a
parent  5431437f92ec34cf7f3590f9a33a59b42aeecfec
...
1
2
3
4
 
5
6
 
 
 
7
8
...
1
2
3
 
4
5
 
6
7
8
9
10
0
@@ -1,8 +1,10 @@
0
 <div id="info_content">
0
 <h1>API Documentation</h1>
0
 
0
-<p>We'll be publishing the RubyURL API documentation in the near future.</p>
0
+<h2>Creating a new RubyURL</h2>
0
 
0
-<p>Check back soon!</p>
0
+<p>If you'd like to generate a RubyURL through the REST API, you'll just need to POST an XML request to <strong>http://rubyurl.com/api/link</strong>.</p>
0
+
0
+<p>To view the example XML requests and responses, <a href="http://gist.github.com/8197">view these examples</a>.</p>
0
 
0
 </div> <!-- end info_content -->
...
1
2
 
3
...
 
1
2
3
0
@@ -1 +1 @@
0
-/*------------------------------------------------ rubyurl 2007-08-06 coded by: Chris Griffin / http://planetargon.com                           http://chriszgriffin.com ------------------------------------------------*/ /*------------------------------------------------------------------------  =Default ------------------------------------------------------------------------*/ body {   background: #f6f5ea;   font: 12px/18px 'Lucida Grande', Arial, sans-serif;    line-height: 18px;   color: #000; } p {   margin-bottom: 18px; }    ul {   margin-bottom: 18px; } li {   margin-left: 9px; } /*------------------------------------------------------------------------  =Structure ------------------------------------------------------------------------*/ #wrapper {   width: 600px;   margin: 36px auto 0; } #header {   position: relative;   overflow: hidden;   margin-bottom: -18px; } #logo {   float: left;   width: 209px;   height: 56px;   display: block;   margin: 0 18px;     text-indent: -9999px;   background: url(/images/logo-rubyurl.png) no-repeat left; } #main_nav {   float: right;   margin: 9px 18px 0; } #main_nav li {   float: left;   border-left: 2px solid #a9a57a;   margin-left: 4px;   padding-left: 4px;   line-height: 12px; } #main_nav li:first-child {   border: none;   margin: 0;   padding: 0; } #main_nav li a {   font-size: 10px;   color: #666; } #main_nav li #abuse {   color: #f00;   font-weight: bold; }    #app_content, #info_content {   clear: both;   margin: 0 18px;   border: 18px solid #fff; } #app_content {   background: #960000;   text-align: center;   padding-top: 18px;   color: #fff; } #info_content {   background: #f9f9f3;   padding: 0 18px 18px;   color: #333; } #app_content a {   color: #fff; } #app_content p {   margin: 0 18px 18px;   color: #f6f5ea; } #app_content #url, #app_content #action {   background: #cf0000;   padding: 18px; } #app_content #url {   margin-bottom: 18px; } #app_content .arrow {   background: #cf0000 url(/images/arrow.png) no-repeat top !important;   padding: 38px 18px 18px !important; } #app_content #action a {   text-transform: uppercase; } #url_stats {   width: 210px;   overflow: hidden;   margin: 0 auto 18px; } #url_stats dt {   float: left;   clear: left; } #url_stats dd {   float: right;   font-weight: bold; }        #tos {   margin: 0 18px;   padding: 0 18px 18px;   font-size: 10px;   color: #a9a57a;   background: #fff; } #tos dt {   display: inline;   margin-right: 5px;   color: #f00;   font-weight: bold; } #tos dd {   display: inline; } #footer {   margin: 18px;   text-align: center;   font-size: 10px;   font-weight: bold;   color: #a9a57a; } #footer p {   margin: 0; } #footer a {   color: #f00; } #footer span {   color: #f00; } /*------------------------------------------------------------------------  =Typography ------------------------------------------------------------------------*/ h1 {   font-size: 18px;   line-height: 36px;   margin-bottom: 18px; } #info_content h1 {   font-weight: bold;   background: #960000;   margin: 0 -18px 18px;   padding: 0 18px;   color: #fff; } h2 {   font-size: 14px;   line-height: 18px;   margin-bottom: 18px; } h3 { } strong { font-weight: bold; } em { font-style: italic; } /*------------------------------------------------------------------------  =Links ------------------------------------------------------------------------*/ a {   color: #f00; } #info_content a {   font-weight: bold; } #info_content a:visited {   color: #b84d4d; } #info_content a:active {   color: #fff;   background: #f00; } /*------------------------------------------------------------------------  =Forms ------------------------------------------------------------------------*/ label {   font-size: 14px; } input {   border: none;   padding: 2px; } /*------------------------------------------------------------------------  =Code samples ------------------------------------------------------------------------*/
0
\ No newline at end of file
0
+/*------------------------------------------------ rubyurl 2007-08-06 coded by: Chris Griffin / http://planetargon.com                           http://chriszgriffin.com ------------------------------------------------*/ /*------------------------------------------------------------------------  =Default ------------------------------------------------------------------------*/ body {   background: #f6f5ea;   font: 12px/18px 'Lucida Grande', Arial, sans-serif;    line-height: 18px;   color: #000; } p {   margin-bottom: 18px; }    ul {   margin-bottom: 18px; } li {   margin-left: 9px; } /*------------------------------------------------------------------------  =Structure ------------------------------------------------------------------------*/ #wrapper {   width: 600px;   margin: 36px auto 0; } #header {   position: relative;   overflow: hidden;   margin-bottom: -18px; } #logo {   float: left;   width: 209px;   height: 56px;   display: block;   margin: 0 18px;     text-indent: -9999px;   background: url(/images/logo-rubyurl.png) no-repeat left; } #main_nav {   float: right;   margin: 9px 18px 0; } #main_nav li {   float: left;   border-left: 2px solid #a9a57a;   margin-left: 4px;   padding-left: 4px;   line-height: 12px; } #main_nav li:first-child {   border: none;   margin: 0;   padding: 0; } #main_nav li a {   font-size: 10px;   color: #666; } #main_nav li #abuse {   color: #f00;   font-weight: bold; }    #app_content, #info_content {   clear: both;   margin: 0 18px;   border: 18px solid #fff; } #app_content {   background: #960000;   text-align: center;   padding-top: 18px;   color: #fff; } #info_content {   background: #f9f9f3;   padding: 0 18px 18px;   color: #333; } #app_content a {   color: #fff; } #app_content p {   margin: 0 18px 18px;   color: #f6f5ea; } #app_content #url, #app_content #action {   background: #cf0000;   padding: 18px; } #app_content #url {   margin-bottom: 18px; } #app_content .arrow {   background: #cf0000 url(/images/arrow.png) no-repeat top !important;   padding: 38px 18px 18px !important; } #app_content #action a {   text-transform: uppercase; } #url_stats {   width: 210px;   overflow: hidden;   margin: 0 auto 18px; } #url_stats dt {   float: left;   clear: left; } #url_stats dd {   float: right;   font-weight: bold; }        #tos {   margin: 0 18px;   padding: 0 18px 18px;   font-size: 10px;   color: #a9a57a;   background: #fff; } #tos dt {   display: inline;   margin-right: 5px;   color: #f00;   font-weight: bold; } #tos dd {   display: inline; } #footer {   margin: 18px;   text-align: center;   font-size: 10px;   font-weight: bold;   color: #a9a57a; } #footer p {   margin: 0; } #footer a {   color: #f00; } #footer span {   color: #f00; } /*------------------------------------------------------------------------  =Typography ------------------------------------------------------------------------*/ h1 {   font-size: 18px;   line-height: 36px;   margin-bottom: 18px; } #info_content h1 {   font-weight: bold;   background: #960000;   margin: 0 -18px 18px;   padding: 0 18px;   color: #fff; } h2 {   font-size: 14px;   line-height: 18px;   margin-bottom: 18px; } h3 { } strong { font-weight: bold; } em { font-style: italic; } /*------------------------------------------------------------------------  =Links ------------------------------------------------------------------------*/ a {   color: #f00; } #info_content a {   font-weight: bold; } #info_content a:visited {   color: #b84d4d; } #info_content a:active {   color: #fff;   background: #f00; } /*------------------------------------------------------------------------  =Forms ------------------------------------------------------------------------*/ label {   font-size: 14px; } input {   border: none;   padding: 2px; } /*------------------------------------------------------------------------  =Code samples ------------------------------------------------------------------------*/ pre {   background: #EFEFEF;   overflow: auto;   font-family: "Courier New", Courier, monospace } code {   color: #000;   display: block;   font-size: 14px;   padding: 9px; }
0
\ No newline at end of file

Comments