Projects > FAQs


Index

GET : /api/designnest/v1/projects/{projectID}/faqs

projectID : the ID of the current project

Response :

{
    "code" : 1 ,
    "message" : "" ,
    "data" : [
        "list" : [
            {
                "id": 0,
                "title": "",
                "content": ""
            },
            ...
        ]
    ]
}

Store

POST : /api/designnest/v1/projects/{projectID}/faqs

projectID : the ID of the current project

Request :

{
    "project" : {
        "faq" : {
            "title" : '' ,
            "content" : ''
        }
    }
}

title : Title of FAQ

content : Content of FAQ

Response :

{
    "code" : 1 ,
    "message" : "" ,
    "data" : [
        "id" => 0 ,
    ]
}

Update

PATCH : /api/designnest/v1/projects/{projectID}/faqs/{faqID}

projectID : the ID of the current project

faqID : the ID of the current FAQ

Request :

{
    "project" : {
        "faq" : {
            "title" : '' ,
            "content" : ''
        }
    }
}

title : Title of FAQ

content : Content of FAQ

Response :

{
    "code" : 1 ,
    "message" : "" ,
    "data" : [
        "id" => 0 ,
    ]
}

Destroy

DELETE : /api/designnest/v1/projects/{projectID}/faqs/{faqID}

projectID : the ID of the current project

faqID : the ID of the current FAQ

Response :

{
    "code" : 1 ,
    "message" : "" ,
    "data" : [
        "id" => 0 ,
    ]
}