Skip to content

The backend server for Dotify implementing P2P, Web-Torrent, REST-API, and gRPC over HTTP2

Notifications You must be signed in to change notification settings

PenguinDan/Dotify_Server

Repository files navigation

Dotify_Server

The backend server for Dotify

Requirements

  1. [Node.js] v8.12.0
  2. [npm] v6.4.1

Routes

For all requests

  • Required parameters
    • Request header
      • appKey: JSON Web Token for application

Create a User

  • Route: POST https://dotify.online/users
  • Required Parameters
    • Request Body
      • username : Username of the user.
      • password : Password for the user.
      • securityQuestion1 : First security question for forget password.
      • securityAnswer1 : Answer to security question 1.
      • securityQuestion2 : Second security question for forget password.
      • securityAnswer2 : Answer to security question 2.

Update User Password

  • Route: PUT https://dotify.online/users
  • Required Parameters
    • Request Body
      • username : Username of the user.
      • password : Password for the user.

Get User Information

  • Route: GET https://dotify.online/users
  • Required Parameters
    • Request Body
      • username : Username of the user.
      • password : Password for the user.

Check Username Availability

Reset User

Check Security Question Answers

  • Route: GET https://dotify.online/users/reset-check
  • Required Parameters
    • Request Body
      • username : Username of the user.
      • securityAnswer1 : Answer to security question 1.
      • securityAnswer2 : Answer to security question 2.

Saves User Profile Image

Gets All Playlist for User

Creates a Playlist for User

Deletes a Playlist for User

Get Playlist Information

Adds song to Playlist

Get Song Information

Get Search Results

Get Artist Information

Codes

Identify Request code constants

  • 901: USER_NOT_FOUND_CODE
  • 900: USER_FOUND_CODE

HTTP Success codes

  • 200:OK
  • 201: CREATED
  • 202: ACCEPTED
  • 203: NON_AUTHORITATIVE_INFO
  • 204: NO_CONTENT
  • 205: RESET_CONTENT
  • 206: PARTIAL_CONTENT

HTTP Client Error Codes

  • 400: BAD_REQUEST
  • 401: UNAUTHORIZED
  • 403: FORBIDDEN
  • 404: NOT_FOUND
  • 405: METHOD_NOT_ALLOWED
  • 406: NOT_ACCEPTABLE

HTTP Server Error Codes

  • 500: INTERNAL_SERVER_ERROR

About

The backend server for Dotify implementing P2P, Web-Torrent, REST-API, and gRPC over HTTP2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published