Skip to content

Request and Response Models

Subhrodip Mohanta edited this page Jun 26, 2021 · 3 revisions

User

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "username": "string",
  "name": "string",
  "avatar": "string",
  "bio": "string",
  "followerCount": 0,
  "followingCount": 0,
  "verified": true
}

Post

[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "text": "string",
    "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "images": [
      "string"
    ],
    "repostCount": 0,
    "likeCount": 0,
    "hashtags": [
      "string"
    ],
    "mentions": [
      "string"
    ],
    "originalPostId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "replyToId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "timestamp": "2021-06-26T19:32:31.744Z",
  }
]

Hashtag

[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "tag": "string",
    "recentPostCount": 0
  }
]

Application Error Response (under development)

{
  "empty": true,
  "model": {},
  "modelMap": {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  },
  "reference": true,
  "status": "ACCEPTED",
  "view": {
    "contentType": "string"
  },
  "viewName": "string"
}

01. Home

02. How to Contribute (needs splitting)

03. Entity Design

04. Technology Selection

  1. Installation

06. Lombok Configuration

  1. Project Configuration

  2. IDE Instructions

  3. Milestones and Versioning

10. API Endpoints Overview

   10.1 Request and Response Models

   10.2 Detailed API Documentation

  1. How to Test Endpoints

12. Collaboration

  1. Working with issues

  2. Reviewing pull requests

15. Static analysis

  1. Roadmap

17. Team

18. Known issues

19. Getting help

  1. Recognizing contributors
Clone this wiki locally