/filedrop

A Dropbox clone in Rails.

Primary LanguageRuby

README

  • Ruby Version: 2.3.1

  • Rails Version: 5.0.0.1

  • To use:

CONTRIBUTORS:


FileDrop API
  • Version: 1.0.0

  • Description: This API allows you to create, read, update, and delete comments on FileDrop documents.

    Find source code of this API here

  • Host: filedrop-v1.herokuapp.com

  • Base Path: /api/v1/comments

    • schemes:
      • http
      • https
    • consumes:
      • application/json
    • produces:
      • application/json
  • paths:

    GET /?api_key[API-KEY]&document_id=[DOCUMENT_ID]

    Parameters: document_id: The document for which you would like to see comments Response: message: Array of all the comments associated with the document

    GET /comment_id[COMMENT_ID]?api_key[API-KEY]&document_id=[DOCUMENT_ID]

    Parameters: document_id: The document which contains the comment you would like to see user_id: The user who made the comment comment_id: The comment you would like to see Response: message: A comment

    POST /?api_key[API-KEY]&document_id=[DOCUMENT_ID]&user_id=[USER_ID]&content=[CONTENT]

    Parameters: document_id: The document upon which you are commenting user_id: The user making a comment content: The content of the comment being posted Response: message: "A comment was created!"

    PUT /comment_id=[COMMENT_ID]?api_key[API-KEY]&document_id=[DOCUMENT_ID]&content=[CONTENT]

    Parameters: document_id: The document whose comment you're editing user_id: The id of the user editing the comment comment_id: The comment being edited content: The content of the comment being edited Response: message: "The comment was edited!"

    DELETE /comment_id=[COMMENT_ID]?api_key[API-KEY]&document_id=[DOCUMENT_ID]

    Parameters: document_id: The document whose comment you're deleting user_id: The id of the user deleting the comment comment_id: The comment being deleted content: The content of the comment being edited Response: message: "The comment was edited!"