Permalink
Browse files

Add Story submission to service description

  • Loading branch information...
hnrysmth committed Nov 26, 2013
1 parent bb773af commit f81a94394e18c8d39b34f5931dfd6807a9c6e075
Showing with 40 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +38 −0 api/story.json
  3. +1 −1 api/user.json
View
@@ -1,3 +1,4 @@
tmp
vendor
+node_modules
View
@@ -1,6 +1,44 @@
{
"operations": {
+ "Submit": {
+ "httpMethod": "POST",
+ "uri": "/api/submit",
+ "summary": "Submit a new story",
+ "parameters": {
+ "url": {
+ "location": "query",
+ "description": "The link to submit, if the 'kind' is 'link'",
+ "required": false,
+ "type": "string"
+ },
+ "text": {
+ "location": "query",
+ "description": "The text to submit, if the 'kind' is 'self'",
+ "required": false,
+ "type": "string"
+ },
+ "kind": {
+ "location": "query",
+ "description": "Either 'link' or 'self'",
+ "required": true,
+ "type": "string"
+ },
+ "sr": {
+ "location": "query",
+ "description": "The subreddit to submit the story to",
+ "required": true,
+ "type": "string"
+ },
+ "title": {
+ "location": "query",
+ "description": "The title text for the story",
+ "required": true,
+ "type": "string"
+ }
+ }
+ },
+
"Vote": {
"httpMethod": "POST",
"uri": "/api/vote",
View
@@ -32,7 +32,7 @@
"httpMethod": "GET",
"uri": "api/me.json",
"summary": "Retrieve information about logged-in user"
- }
+ },
"Register": {
"httpMethod": "POST",

0 comments on commit f81a943

Please sign in to comment.