Projects > Story Lines


Media Type

Type Explain
1 images
2 video

Index

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

projectID : the ID of the current project

flag name
1 story line
2 look a like
image >> type name
0 default
1 image
2 logo

Response :

{
    "code" : 1 ,
    "message" : "" ,
    "data" : [
        "list" : {
            "paginate" : {
                "total" : 0 ,
                "has_more_page" : 0 / 1
            } ,
            "data" : [
                {
                    "flag" : 0 ,
                    "id" : 0 ,
                    "title" : "" , 
                    "content" : "" ,
                    "start_time" : "" ,
                    "media" : [
                        {
                            "id"   : 0 ,
                            "type" : 0 ,
                            "url"  : "" 
                        } ,
                        ...
                    ] ,
                    "media_type" : 0 ,
                    "read_more" : ""
                } ,
                ...
            ]
        }
    ]
}

Store

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

projectID : the ID of the current project

Request :

{
    "project" : {
        "story_line" : {
            "title" : '', 
            "content" : '' ,
            "media_type" : 0 ,
            "media" => [
                {
                    "id" : 0 ,
                    "url" : ""
                } ,
                ...
            ]
        }
    }
}

media_type : media type of story line

media.*.url : media url of story line

media.*.id : media id of story line

title : Title of story line

content : Content of story line

Response :

{
    "code" : 1 ,
    "message" : "" ,
    "data" : [
        "id" : 0 ,
        "title" : "" , 
        "content" : "" ,
        "start_time" : "" ,
        "media" : [
            {
                "id" : 0 ,
                "url" : "" 
            } ,
            ...
        ] ,
        "media_type" : 0
    ]
}

Update

PATCH : /api/designnest/v1/projects/{projectID}/story_lines/{storyLineID}

projectID : the ID of the current project

storyLineID : the ID of the current story line

Request :

{
    "project" : {
        "story_line" : {
            "title" : '', 
            "content" : '' ,
            "media_type" : 0 ,
            "media" => [
                {
                    "id" : 0 ,
                    "url" : ""
                } ,
                ...
            ]
        }
    }
}

media_type : media type of story line

media.*.url : media url of story line

media.*.id : media id of story line

title : Title of story line

content : Content of story line

Response :

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

Destroy

DELETE : /api/designnest/v1/projects/{projectID}/story_lines/{storyLineID}

projectID : the ID of the current project

storyLineID : the ID of the current story lines

Response :

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