---
# System prepended metadata

title: Celebrify

---

# Celebrify

Structure for storing Celebrity details
```
{
    "uid": "1923",
    "cid": "918",
    "name": "Vikrame",
    "mob": "9876543210",
    "email": "abc@gmail.com",
    "social_media": "facebook/twitter/Instagram/Youtube"
    "status": "pending/approved",
    "doj": "6/9/2019",
    "lastUpdated":"9/6/2019",
    "introVid":"url",
    "idproof":"file/img"
    "details":{
                "price":"4500",
                "desc":"blah blah"
              }
    "bankDet": {
                 "IFSC": "0988776",
                 "accno": "987665",
                 "bankName":"abc"
               },
    "requests":[{
                    "uid":"098",
                    "status":"rejected/pending/approved",
                    "msg":"bday wish",
                    "date":"9/6/2019"
               }],
    "imgURL":"photo",
    "rat":{
    "ratings":5,
    "comments":[{
        "uid":"987",
        "name":"Sharan",
        "comment":"Very friendly!!!"
    }]
    }
    "vids":[{
        "url":"link",
        "date":"",
        "vid":""
    }]
    
}
```

Structure for storing User details

```
{
    "uid":"808",
    "name":"Bhavesh",
    "mob": "9876543210",
    "email": "abc@gmail.com",
    "doj": "6/9/2019",
    "req":[{
        "cid":"987",
        "celebName":"Ekansh",
        "status":"accepted/rejected/pending/refund_processing/refund_sucessful/refund_failed",
        "price":5900,
        "dateOfRequest":"9/6/2019"
    }],
    "vids":[{
        "vid":980,
        "url":"link",
        "seen":true/false
    }]
}
```

## API Endpoints

* User dashboard

    `POST` https://celebrify-backend.herokuapp.com/user/dashboard

    ```
       {
           "Authorization" : "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTU4ODAxNTcwLCJqdGkiOiIwODA2NDliNTMwZmQ0M2RjOWMyNGQ0NWE4MGMyOTAwNiIsInVzZXJfaWQiOiJjdXN0b21lcjJAZ21haWwuY29tIn0.HI9t-no6-YaNfFU-e1xol4yxGZCdm8eR6dO4SswzVZQ",
           "selected" : "featured/recents/trending",
           "currentPage" : 1
       } 
    ```
     * Response
         - Code : `401`
           Error : `access token expired`

         - Code : `200`
           Content : 
       ```
       {
           "totalPages" : 20,
           "celebDetails" : [{
                               "cid" : 809,
                               "name" : "Viky",
                               "img" : "link",
                               "price" : 3000
                           }]
       }
       ```
   
* View celebrity details

   `POST` https://celebrify-backend.herokuapp.com/user/celebinfo

    ```
       {
           "Authorization" : "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTU4ODAxNTcwLCJqdGkiOiIwODA2NDliNTMwZmQ0M2RjOWMyNGQ0NWE4MGMyOTAwNiIsInVzZXJfaWQiOiJjdXN0b21lcjJAZ21haWwuY29tIn0.HI9t-no6-YaNfFU-e1xol4yxGZCdm8eR6dO4SswzVZQ",
           "cid" : 809
       } 
    ```

    * Response
         - Code : `401`
           Error : `access token expired`

         - Code : `200`
           Content : 
       ```
       {
          "cid" : 809,
          "name" : "Viky",
          "img" : "link",
          "price" : 3000,
          "desc" : "Lorem ipsum dolor",
          "comments":[{
                        "uid":"987",
                        "name":"Sharan",
                        "comment":"Very friendly!!!"
                    }]
       }
       ```
       
* View user info
    `POST` https://celebrify-backend.herokuapp.com/user/userinfo       

    ```
       {
           "Authorization" : "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTU4ODAxNTcwLCJqdGkiOiIwODA2NDliNTMwZmQ0M2RjOWMyNGQ0NWE4MGMyOTAwNiIsInVzZXJfaWQiOiJjdXN0b21lcjJAZ21haWwuY29tIn0.HI9t-no6-YaNfFU-e1xol4yxGZCdm8eR6dO4SswzVZQ",
           "cid" : 809
       } 
    ```

    * Response
         - Code : `401`
           Error : `access token expired`

         - Code : `200`
           Content : 
       ```
       {
          "uid" : 809,
          "name" : "Viky",
          "desc" : "Lorem ipsum dolor",
          "req":[{
                    "cid":"987",
                    "celebName":"Ekansh",
                    "status":"accepted/rejected/pending/refund_processing/refund_sucessful/refund_failed",
                    "price":5900,
                    "dateOfRequest":"9/6/2019"
                }],
            "vids":[{
                        "vid":980,
                        "url":"link",
                        "seen":true/false
                    }]
       }
       ```