Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Story submission to service description

  • Loading branch information...
commit f81a94394e18c8d39b34f5931dfd6807a9c6e075 1 parent bb773af
@hnrysmth authored
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  .gitignore
@@ -1,3 +1,4 @@
tmp
vendor
+node_modules
View
38 api/story.json
@@ -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
2  api/user.json
@@ -32,7 +32,7 @@
"httpMethod": "GET",
"uri": "api/me.json",
"summary": "Retrieve information about logged-in user"
- }
+ },
"Register": {
"httpMethod": "POST",
Please sign in to comment.
Something went wrong with that request. Please try again.