Skip to content

mehranj73/threads

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?

Who do I talk to?

Urls/api list :

  • Card/Bookcover

    1.To create the Url= /threadcard/api/addbookcover/

    json formate: {
    "name": "Name of the card", "description": "just give brief about card", "image": upload single image, "created_by": pass the creator user ID, } created by is compulsary, rest all accepts nullable.

    2.To Edit:

    Url= /threadcard/api/editbookcover/(<bookcover ID>/
    
      pk is id of perticular card
    
    1. To List all Cards: Url=/threadcard/api/listbookcover/
  • Thread Cards

    1. to crate a ThreadCard i.e posting all thread data at once to create card for the first time

      Url= /threadcard/api/createthread/

    json formate: [{"name":"CP-1","message":"ondu","bookcoverowner":4,"bookcover":19}, {"name":"CP-2","message":"eradu","bookcoverowner":4,"bookcover":19}, {"name":"CP-4","message":"test12344","bookcoverowner":4,"bookcover":19}, {"name":"CP-5","message":"yesfe","bookcoverowner":4,"bookcover":19}]

    name is optinal remaining is compulsary, message is content/comment of thread . bookowner is creator User-ID. and bookcover is Main thread ID.

    1. to create a single card, which helps in adding the new card after creating the Thread:

      Url= /threadcard/api/addthread/

    json formate: { "name": "optional", "message": "Comment message here", "bookcoverowner": Creator ID, "bookcover": Bookcover/Card ID }

    1. To list All the Threads Wrt Card/Bookcover url= /threadcard/api/listthread/()/

    2. to Edit Indivisual Thread

      url= /threadcard/api/editthread/(<threadcard ID >)/
      
  • Subcomments:

    1. Adding sub comment: url = /threadcard/api/addsubcomment/ { "comment": "", "thread": 1, "created_by": 2 }

    2. edit : url = /threadcard/api/editsubcomment/()/

      1. List adll subcomments of thread .

      Url= /threadcard/api/listsubcomment/()/

About

Threads Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.7%
  • HTML 22.3%
  • Python 19.3%
  • CSS 7.4%
  • PHP 6.2%
  • Go 1.0%
  • Dockerfile 0.1%