Skip to content

Smart-Pot/Comment-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comment Struct

Comment{
    "id": string,
    "userId": string,
    "postId": string,
    "content":string,
    "date":string,
}

GetByUser

  • path: /comment/user/{id}/{pagenumber}/{pagesize}

  • returns:

    {
        "comments": Comment[],
        "success": Number,
        "message" : String
    }

GetByPost

  • path : /comment/post/{id}/{pagenumber}/{pagesize}
  • method: DELETE
  • returns:
    {
        "comments": Comment[],
        "success": Number,
        "message" : String
    }

Add

  • path: /comment/new

  • method: POST

  • params:

    • Header:

      Name Description Type
      x-auth-token authentication token of the user String
  • returns:

    {
        "comments": Comment[],
        "success": Number,
        "message" : String
    }

Delete

  • path: /comment/{id}
  • method: DELETE
  • params:
    • Header:

      Name Description Type
      x-auth-token authentication token of the user String
  • returns:
    {
        "comments": Comment[],
        "success": Number,
        "message" : String
    }

Vote

  • path: /comment/vote

  • method: POST

  • params:

    • Header:

      Name Description Type
      x-auth-token authentication token of the user String
  • returns:

    {
        "comments": Comment[],
        "success": Number,
        "message" : String
    }

About

A microservice for comment operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •