NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

Constants

api/v1/constants

Example request:

curl -X GET "http://lakoketa.test/api/v1/constants" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/constants",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": {
        "styles": [
            {
                "id": 0,
                "name": "Casual",
                "imageUrl": "http:\/\/localhost\/img\/outfits\/outfit3.png"
            },
            {
                "id": 1,
                "name": "Sporty",
                "imageUrl": "http:\/\/localhost\/img\/outfits\/outfit3.png"
            },
            {
                "id": 2,
                "name": "Business",
                "imageUrl": "http:\/\/localhost\/img\/outfits\/outfit3.png"
            },
            {
                "id": 3,
                "name": "Glam",
                "imageUrl": "http:\/\/localhost\/img\/outfits\/outfit3.png"
            },
            {
                "id": 4,
                "name": "Classy",
                "imageUrl": "http:\/\/localhost\/img\/outfits\/outfit3.png"
            }
        ],
        "colors": [
            {
                "id": 1,
                "name": "Red",
                "hex": "DA130C"
            },
            {
                "id": 2,
                "name": "Orange",
                "hex": "EFA255"
            },
            {
                "id": 3,
                "name": "Yellow",
                "hex": "FFEB3B"
            },
            {
                "id": 4,
                "name": "Green",
                "hex": "4CAF50"
            },
            {
                "id": 5,
                "name": "Blue",
                "hex": "3A41AC"
            },
            {
                "id": 6,
                "name": "Purple",
                "hex": "A345B8"
            },
            {
                "id": 7,
                "name": "Pink",
                "hex": "F65DB6"
            },
            {
                "id": 8,
                "name": "Black",
                "hex": "000000"
            },
            {
                "id": 9,
                "name": "White",
                "hex": "FFFFFF"
            },
            {
                "id": 10,
                "name": "Grey",
                "hex": "CDCDCD"
            },
            {
                "id": 11,
                "name": "Brown",
                "hex": "805226"
            },
            {
                "id": 12,
                "name": "Beige",
                "hex": "DAC1A7"
            },
            {
                "id": 13,
                "name": "Gold",
                "hex": "DAA520"
            },
            {
                "id": 14,
                "name": "Silver",
                "hex": "C0C0C0"
            }
        ],
        "seasons": [
            {
                "id": 0,
                "name": "Spring"
            },
            {
                "id": 1,
                "name": "Summer"
            },
            {
                "id": 2,
                "name": "Autumn"
            },
            {
                "id": 3,
                "name": "Winter"
            }
        ],
        "types": [
            {
                "id": 0,
                "name": "Tops",
                "imageUrl": "http:\/\/localhost\/img\/items\/river-island.png"
            },
            {
                "id": 1,
                "name": "Bottoms",
                "imageUrl": "http:\/\/localhost\/img\/items\/river-island.png"
            },
            {
                "id": 2,
                "name": "Dresses",
                "imageUrl": "http:\/\/localhost\/img\/items\/river-island.png"
            },
            {
                "id": 3,
                "name": "Jumpsuits",
                "imageUrl": "http:\/\/localhost\/img\/items\/river-island.png"
            },
            {
                "id": 4,
                "name": "Shoes",
                "imageUrl": "http:\/\/localhost\/img\/items\/river-island.png"
            },
            {
                "id": 5,
                "name": "Bags",
                "imageUrl": "http:\/\/localhost\/img\/items\/river-island.png"
            },
            {
                "id": 6,
                "name": "Outerwear",
                "imageUrl": "http:\/\/localhost\/img\/items\/river-island.png"
            },
            {
                "id": 7,
                "name": "Accessories",
                "imageUrl": "http:\/\/localhost\/img\/items\/river-island.png"
            }
        ],
        "brands": [
            {
                "id": 1,
                "name": "asos",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/asos.png"
            },
            {
                "id": 2,
                "name": "bershka",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/bershka.png"
            },
            {
                "id": 3,
                "name": "boss",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/boss.png"
            },
            {
                "id": 4,
                "name": "bvlgari",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/bvlgari.png"
            },
            {
                "id": 5,
                "name": "channel",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/channel.png"
            },
            {
                "id": 6,
                "name": "christian dior",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/christian-dior.png"
            },
            {
                "id": 7,
                "name": "finishline",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/finishline.png"
            },
            {
                "id": 8,
                "name": "forever21",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/forever21.png"
            },
            {
                "id": 9,
                "name": "furla",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/furla.png"
            },
            {
                "id": 10,
                "name": "gucci",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/gucci.png"
            },
            {
                "id": 11,
                "name": "hm",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/hm.png"
            },
            {
                "id": 12,
                "name": "lacoste",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/lacoste.png"
            },
            {
                "id": 13,
                "name": "macys",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/macys.png"
            },
            {
                "id": 14,
                "name": "mango",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/mango.png"
            },
            {
                "id": 15,
                "name": "moschino",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/moschino.png"
            },
            {
                "id": 16,
                "name": "nordstrom",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/nordstrom.png"
            },
            {
                "id": 17,
                "name": "prada",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/prada.png"
            },
            {
                "id": 18,
                "name": "ralphlauren",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/ralphlauren.png"
            },
            {
                "id": 19,
                "name": "zara",
                "imageUrl": "http:\/\/lakoketa.test\/img\/brands\/zara.png"
            }
        ],
        "shops": [
            {
                "id": 0,
                "name": "HM",
                "imageUrl": "http:\/\/localhost\/img\/shops\/hm.jpg",
                "styles": [
                    "Casual"
                ]
            },
            {
                "id": 1,
                "name": "Macy's",
                "imageUrl": "http:\/\/localhost\/img\/shops\/macy's.jpg",
                "styles": [
                    "Classy"
                ]
            },
            {
                "id": 2,
                "name": "Forever 21",
                "imageUrl": "http:\/\/localhost\/img\/shops\/forever 21.jpg",
                "styles": [
                    "Casual"
                ]
            },
            {
                "id": 3,
                "name": "Nordstorm",
                "imageUrl": "http:\/\/localhost\/img\/shops\/nordstorm.jpg",
                "styles": [
                    "Classy"
                ]
            },
            {
                "id": 4,
                "name": "Finish Line",
                "imageUrl": "http:\/\/localhost\/img\/shops\/finish line.jpg",
                "styles": [
                    "Classy"
                ]
            },
            {
                "id": 5,
                "name": "Gucci",
                "imageUrl": "http:\/\/localhost\/img\/shops\/gucci.jpg",
                "styles": [
                    "Classy"
                ]
            },
            {
                "id": 6,
                "name": "Asos",
                "imageUrl": "http:\/\/localhost\/img\/shops\/asos.jpg",
                "styles": [
                    "Sporty"
                ]
            },
            {
                "id": 7,
                "name": "Boss",
                "imageUrl": "http:\/\/localhost\/img\/shops\/boss.jpg",
                "styles": [
                    "Classy",
                    "Business"
                ]
            },
            {
                "id": 8,
                "name": "Furla",
                "imageUrl": "http:\/\/localhost\/img\/shops\/furla.jpg",
                "styles": [
                    "Business"
                ]
            },
            {
                "id": 9,
                "name": "Mango",
                "imageUrl": "http:\/\/localhost\/img\/shops\/mango.jpg",
                "styles": [
                    "Casual"
                ]
            },
            {
                "id": 10,
                "name": "Moschino",
                "imageUrl": "http:\/\/localhost\/img\/shops\/moschino.jpg",
                "styles": [
                    "Casual",
                    "Sporty"
                ]
            },
            {
                "id": 11,
                "name": "Zara",
                "imageUrl": "http:\/\/localhost\/img\/shops\/zara.jpg",
                "styles": [
                    "Casual",
                    "Business"
                ]
            }
        ]
    }
}

HTTP Request

GET api/v1/constants

HEAD api/v1/constants

Feed

Returns mix of items and outfits.

Example request:

curl -X GET "http://lakoketa.test/api/v1/feed" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/feed",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": {
        "items": [],
        "outfits": []
    },
    "meta": {
        "page": 1,
        "total": 0,
        "cache_key": "k6dq9F1grveHlor9"
    }
}

HTTP Request

GET api/v1/feed

HEAD api/v1/feed

Filtered Items

Handle the incoming request.

Example request:

curl -X GET "http://lakoketa.test/api/v1/item-filters" \
-H "Accept: application/json" \
    -d "filter"="similar" \
    -d "type"="Dresses" \
    -d "item"="nemo" \
    -d "colors"="nemo" \
    -d "brands"="nemo" \
    -d "on_sale"="1" \
    -d "price_from"="821" \
    -d "price_to"="821" \
    -d "per_page"="821" \
    -d "page"="821" \
    -d "seed"="306989" \
    -d "colors.0"="Blue" \
    -d "brands.0"="nemo" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/item-filters",
    "method": "GET",
    "data": {
        "filter": "similar",
        "type": "Dresses",
        "item": "nemo",
        "colors": "nemo",
        "brands": "nemo",
        "on_sale": true,
        "price_from": 821,
        "price_to": 821,
        "per_page": 821,
        "page": 821,
        "seed": 306989,
        "colors.0": "Blue",
        "brands.0": "nemo"
},
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "message": "The given data was invalid.",
    "errors": {
        "filter": [
            "The filter field is required."
        ]
    }
}

HTTP Request

GET api/v1/item-filters

HEAD api/v1/item-filters

Parameters

Parameter Type Status Description
filter string required similar, featured or shop
type string optional Tops, Bottoms, Dresses, Jumpsuits, Shoes, Bags, Outerwear or Accessories
item string optional Required if filter is similar Valid item id
colors array optional
brands array optional
on_sale boolean optional
price_from numeric optional Required if the parameters price_to are present.
price_to numeric optional Required if the parameters price_from are present.
per_page numeric optional
page numeric optional
seed numeric optional Minimum: 1 Maximum: 1000000
colors.0 string required Red, Orange, Yellow, Green, Blue, Purple, Pink, Black, White, Grey, Brown, Beige, Gold or Silver
brands.0 string required

Item Combinations

Returns outfit recommendations based on the passed item

Example request:

curl -X GET "http://lakoketa.test/api/v1/combinations" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/combinations",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "message": "The given data was invalid.",
    "errors": {
        "main_item": [
            "The main item field is required."
        ]
    }
}

HTTP Request

GET api/v1/combinations

HEAD api/v1/combinations

Items

Display a listing of the resource.

Example request:

curl -X GET "http://lakoketa.test/api/v1/items" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/items",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": [
        {
            "id": 1,
            "user_id": 2,
            "name": "Mr. Tyreek Dickens III",
            "tags": [],
            "brand": "Zara",
            "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/bqOlkBabKci7pXVvjQtAKgiag16F0LPPkwcVjcw2.jpeg",
            "type": "Tops",
            "colors": [
                "Yellow",
                "Black"
            ],
            "styles": [
                "Business",
                "Glam"
            ],
            "seasons": [
                "Summer",
                "Spring"
            ],
            "price": null,
            "currency": null,
            "checkout_url": null,
            "favorite": false,
            "updated_at": 1543417208,
            "qualified": true
        },
        {
            "id": 2,
            "user_id": 2,
            "name": "Camryn Luettgen",
            "tags": [],
            "brand": "Macy's",
            "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/xrU59Mu5g03wldLIzATUaVYTCknnHnZL2WIqpiGG.jpeg",
            "type": "Bottoms",
            "colors": [
                "Gold",
                "Blue"
            ],
            "styles": [
                "Classy",
                "Casual"
            ],
            "seasons": [
                "Summer",
                "Autumn"
            ],
            "price": null,
            "currency": null,
            "checkout_url": null,
            "favorite": false,
            "updated_at": 1543417208,
            "qualified": true
        },
        {
            "id": 3,
            "user_id": 2,
            "name": "Theodore Gottlieb",
            "tags": [],
            "brand": "Asos",
            "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/xrU59Mu5g03wldLIzATUaVYTCknnHnZL2WIqpiGG.jpeg",
            "type": "Jumpsuits",
            "colors": [
                "Gold",
                "Black"
            ],
            "styles": [
                "Casual",
                "Business"
            ],
            "seasons": [
                "Autumn",
                "Summer"
            ],
            "price": null,
            "currency": null,
            "checkout_url": null,
            "favorite": false,
            "updated_at": 1543417208,
            "qualified": true
        },
        {
            "id": 4,
            "user_id": 2,
            "name": "Jay Green",
            "tags": [],
            "brand": "Furla",
            "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/xrU59Mu5g03wldLIzATUaVYTCknnHnZL2WIqpiGG.jpeg",
            "type": "Dresses",
            "colors": [
                "Yellow",
                "White"
            ],
            "styles": [
                "Business",
                "Sporty"
            ],
            "seasons": [
                "Winter",
                "Summer"
            ],
            "price": null,
            "currency": null,
            "checkout_url": null,
            "favorite": false,
            "updated_at": 1543417208,
            "qualified": true
        },
        {
            "id": 5,
            "user_id": 2,
            "name": "Tia Boyle",
            "tags": [],
            "brand": "Zara",
            "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/5aQD79KCmYWc7W1xG8V1nkbFXVW6k2Hlm6U4SfFB.jpeg",
            "type": "Shoes",
            "colors": [
                "White",
                "Silver"
            ],
            "styles": [
                "Casual",
                "Classy"
            ],
            "seasons": [
                "Summer",
                "Autumn"
            ],
            "price": null,
            "currency": null,
            "checkout_url": null,
            "favorite": false,
            "updated_at": 1543417208,
            "qualified": true
        },
        {
            "id": 6,
            "user_id": 2,
            "name": "Ms. Elenora Aufderhar II",
            "tags": [],
            "brand": "Boss",
            "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/vnukx6tokKWjdO3nKgMqedu2XGIA8KrX6FJWHDff.jpeg",
            "type": "Outerwear",
            "colors": [
                "Purple",
                "Green"
            ],
            "styles": [
                "Classy",
                "Casual"
            ],
            "seasons": [
                "Autumn",
                "Spring"
            ],
            "price": null,
            "currency": null,
            "checkout_url": null,
            "favorite": false,
            "updated_at": 1543417208,
            "qualified": true
        }
    ],
    "deleted": []
}

HTTP Request

GET api/v1/items

HEAD api/v1/items

Store a newly created resource in storage.

Example request:

curl -X POST "http://lakoketa.test/api/v1/items" \
-H "Accept: application/json" \
    -d "image"="et" \
    -d "name"="et" \
    -d "brand"="et" \
    -d "type"="Bags" \
    -d "colors"="et" \
    -d "styles"="et" \
    -d "seasons"="et" \
    -d "tags"="et" \
    -d "colors.0"="Grey" \
    -d "styles.0"="Glam" \
    -d "seasons.0"="Autumn" \
    -d "tags.0"="et" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/items",
    "method": "POST",
    "data": {
        "image": "et",
        "name": "et",
        "brand": "et",
        "type": "Bags",
        "colors": "et",
        "styles": "et",
        "seasons": "et",
        "tags": "et",
        "colors.0": "Grey",
        "styles.0": "Glam",
        "seasons.0": "Autumn",
        "tags.0": "et"
},
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/items

Parameters

Parameter Type Status Description
image image optional Must be an image (jpeg, png, bmp, gif, or svg)
name string optional Minimum: 2
brand string optional Minimum: 2
type string required Tops, Bottoms, Dresses, Jumpsuits, Shoes, Bags, Outerwear or Accessories
colors array required
styles array required
seasons array required
tags array optional
colors.0 string optional Red, Orange, Yellow, Green, Blue, Purple, Pink, Black, White, Grey, Brown, Beige, Gold or Silver
styles.0 string optional Casual, Sporty, Business, Glam or Classy
seasons.0 string optional Spring, Summer, Autumn or Winter
tags.0 string optional Minimum: 2

Show the specified Item from the database

Example request:

curl -X GET "http://lakoketa.test/api/v1/items/{item}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/items/{item}",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": {
        "id": 1,
        "user_id": 2,
        "name": "Mr. Tyreek Dickens III",
        "tags": [],
        "brand": "Zara",
        "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/bqOlkBabKci7pXVvjQtAKgiag16F0LPPkwcVjcw2.jpeg",
        "type": "Tops",
        "colors": [
            "Yellow",
            "Black"
        ],
        "styles": [
            "Business",
            "Glam"
        ],
        "seasons": [
            "Summer",
            "Spring"
        ],
        "price": null,
        "currency": null,
        "checkout_url": null,
        "favorite": false,
        "wishlisted": false,
        "updated_at": 1543417208,
        "qualified": true
    }
}

HTTP Request

GET api/v1/items/{item}

HEAD api/v1/items/{item}

Update the specified resource in storage.

Example request:

curl -X PUT "http://lakoketa.test/api/v1/items/{item}" \
-H "Accept: application/json" \
    -d "image"="nostrum" \
    -d "name"="nostrum" \
    -d "brand"="nostrum" \
    -d "type"="Dresses" \
    -d "colors"="nostrum" \
    -d "styles"="nostrum" \
    -d "seasons"="nostrum" \
    -d "tags"="nostrum" \
    -d "colors.0"="Blue" \
    -d "styles.0"="Sporty" \
    -d "seasons.0"="Summer" \
    -d "tags.0"="nostrum" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/items/{item}",
    "method": "PUT",
    "data": {
        "image": "nostrum",
        "name": "nostrum",
        "brand": "nostrum",
        "type": "Dresses",
        "colors": "nostrum",
        "styles": "nostrum",
        "seasons": "nostrum",
        "tags": "nostrum",
        "colors.0": "Blue",
        "styles.0": "Sporty",
        "seasons.0": "Summer",
        "tags.0": "nostrum"
},
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PUT api/v1/items/{item}

PATCH api/v1/items/{item}

Parameters

Parameter Type Status Description
image image optional Must be an image (jpeg, png, bmp, gif, or svg)
name string optional Minimum: 2
brand string optional Minimum: 2
type string required Tops, Bottoms, Dresses, Jumpsuits, Shoes, Bags, Outerwear or Accessories
colors array required
styles array required
seasons array required
tags array optional
colors.0 string optional Red, Orange, Yellow, Green, Blue, Purple, Pink, Black, White, Grey, Brown, Beige, Gold or Silver
styles.0 string optional Casual, Sporty, Business, Glam or Classy
seasons.0 string optional Spring, Summer, Autumn or Winter
tags.0 string optional Minimum: 2

Remove the specified resource from storage.

Example request:

curl -X DELETE "http://lakoketa.test/api/v1/items/{item}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/items/{item}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/v1/items/{item}

Outfits

Lists all of the user's outfits

Example request:

curl -X GET "http://lakoketa.test/api/v1/outfits" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/outfits",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": [
        {
            "id": 1,
            "user_id": 2,
            "name": "Ruth Haley IV",
            "tags": [],
            "items": [
                {
                    "id": 6,
                    "user_id": 2,
                    "price": null,
                    "currency": null,
                    "brand": "Boss",
                    "name": "Ms. Elenora Aufderhar II",
                    "type": "Outerwear",
                    "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/vnukx6tokKWjdO3nKgMqedu2XGIA8KrX6FJWHDff.jpeg"
                },
                {
                    "id": 5,
                    "user_id": 2,
                    "price": null,
                    "currency": null,
                    "brand": "Zara",
                    "name": "Tia Boyle",
                    "type": "Shoes",
                    "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/5aQD79KCmYWc7W1xG8V1nkbFXVW6k2Hlm6U4SfFB.jpeg"
                },
                {
                    "id": 2,
                    "user_id": 2,
                    "price": null,
                    "currency": null,
                    "brand": "Macy's",
                    "name": "Camryn Luettgen",
                    "type": "Bottoms",
                    "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/xrU59Mu5g03wldLIzATUaVYTCknnHnZL2WIqpiGG.jpeg"
                }
            ],
            "image_url": "http:\/\/lakoketa.donatix.info\/img\/outfits\/outfit3.png",
            "styles": [
                "Business",
                "Sporty"
            ],
            "seasons": [
                "Summer",
                "Autumn"
            ],
            "favorite": false,
            "updated_at": 1543417208
        },
        {
            "id": 2,
            "user_id": 2,
            "name": "Joshuah Emmerich",
            "tags": [],
            "items": [
                {
                    "id": 5,
                    "user_id": 2,
                    "price": null,
                    "currency": null,
                    "brand": "Zara",
                    "name": "Tia Boyle",
                    "type": "Shoes",
                    "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/5aQD79KCmYWc7W1xG8V1nkbFXVW6k2Hlm6U4SfFB.jpeg"
                },
                {
                    "id": 6,
                    "user_id": 2,
                    "price": null,
                    "currency": null,
                    "brand": "Boss",
                    "name": "Ms. Elenora Aufderhar II",
                    "type": "Outerwear",
                    "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/vnukx6tokKWjdO3nKgMqedu2XGIA8KrX6FJWHDff.jpeg"
                },
                {
                    "id": 1,
                    "user_id": 2,
                    "price": null,
                    "currency": null,
                    "brand": "Zara",
                    "name": "Mr. Tyreek Dickens III",
                    "type": "Tops",
                    "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/bqOlkBabKci7pXVvjQtAKgiag16F0LPPkwcVjcw2.jpeg"
                },
                {
                    "id": 3,
                    "user_id": 2,
                    "price": null,
                    "currency": null,
                    "brand": "Asos",
                    "name": "Theodore Gottlieb",
                    "type": "Jumpsuits",
                    "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/xrU59Mu5g03wldLIzATUaVYTCknnHnZL2WIqpiGG.jpeg"
                }
            ],
            "image_url": "http:\/\/lakoketa.donatix.info\/img\/outfits\/outfit2.jpg",
            "styles": [
                "Casual",
                "Business"
            ],
            "seasons": [
                "Winter",
                "Autumn"
            ],
            "favorite": false,
            "updated_at": 1543417208
        }
    ],
    "deleted": []
}

HTTP Request

GET api/v1/outfits

HEAD api/v1/outfits

Store an outfit to the database

Example request:

curl -X POST "http://lakoketa.test/api/v1/outfits" \
-H "Accept: application/json" \
    -d "image"="et" \
    -d "name"="et" \
    -d "styles"="et" \
    -d "seasons"="et" \
    -d "tags"="et" \
    -d "items"="et" \
    -d "styles.0"="Classy" \
    -d "seasons.0"="Winter" \
    -d "tags.0"="et" \
    -d "items.0"="et" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/outfits",
    "method": "POST",
    "data": {
        "image": "et",
        "name": "et",
        "styles": "et",
        "seasons": "et",
        "tags": "et",
        "items": "et",
        "styles.0": "Classy",
        "seasons.0": "Winter",
        "tags.0": "et",
        "items.0": "et"
},
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/outfits

Parameters

Parameter Type Status Description
image image optional Must be an image (jpeg, png, bmp, gif, or svg)
name string optional Minimum: 2
styles array optional
seasons array optional
tags array optional
items array optional
styles.0 string optional Casual, Sporty, Business, Glam or Classy
seasons.0 string optional Spring, Summer, Autumn or Winter
tags.0 string optional Minimum: 2
items.0 string optional Valid item id

Returns the requested outfit from the database.

Example request:

curl -X GET "http://lakoketa.test/api/v1/outfits/{outfit}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/outfits/{outfit}",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": {
        "id": 1,
        "user_id": 2,
        "name": "Ruth Haley IV",
        "tags": [],
        "items": [
            {
                "id": 6,
                "user_id": 2,
                "price": null,
                "currency": null,
                "brand": "Boss",
                "name": "Ms. Elenora Aufderhar II",
                "type": "Outerwear",
                "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/vnukx6tokKWjdO3nKgMqedu2XGIA8KrX6FJWHDff.jpeg"
            },
            {
                "id": 5,
                "user_id": 2,
                "price": null,
                "currency": null,
                "brand": "Zara",
                "name": "Tia Boyle",
                "type": "Shoes",
                "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/5aQD79KCmYWc7W1xG8V1nkbFXVW6k2Hlm6U4SfFB.jpeg"
            },
            {
                "id": 2,
                "user_id": 2,
                "price": null,
                "currency": null,
                "brand": "Macy's",
                "name": "Camryn Luettgen",
                "type": "Bottoms",
                "image_url": "http:\/\/lakoketa.donatix.info\/storage\/images\/xrU59Mu5g03wldLIzATUaVYTCknnHnZL2WIqpiGG.jpeg"
            }
        ],
        "image_url": "http:\/\/lakoketa.donatix.info\/img\/outfits\/outfit3.png",
        "styles": [
            "Business",
            "Sporty"
        ],
        "seasons": [
            "Summer",
            "Autumn"
        ],
        "favorite": false,
        "updated_at": 1543417208
    }
}

HTTP Request

GET api/v1/outfits/{outfit}

HEAD api/v1/outfits/{outfit}

Updates an outfit to the database

Example request:

curl -X PUT "http://lakoketa.test/api/v1/outfits/{outfit}" \
-H "Accept: application/json" \
    -d "image"="veritatis" \
    -d "name"="veritatis" \
    -d "styles"="veritatis" \
    -d "seasons"="veritatis" \
    -d "tags"="veritatis" \
    -d "items"="veritatis" \
    -d "styles.0"="Casual" \
    -d "seasons.0"="Spring" \
    -d "tags.0"="veritatis" \
    -d "items.0"="veritatis" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/outfits/{outfit}",
    "method": "PUT",
    "data": {
        "image": "veritatis",
        "name": "veritatis",
        "styles": "veritatis",
        "seasons": "veritatis",
        "tags": "veritatis",
        "items": "veritatis",
        "styles.0": "Casual",
        "seasons.0": "Spring",
        "tags.0": "veritatis",
        "items.0": "veritatis"
},
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PUT api/v1/outfits/{outfit}

PATCH api/v1/outfits/{outfit}

Parameters

Parameter Type Status Description
image image optional Must be an image (jpeg, png, bmp, gif, or svg)
name string optional Minimum: 2
styles array optional
seasons array optional
tags array optional
items array optional
styles.0 string optional Casual, Sporty, Business, Glam or Classy
seasons.0 string optional Spring, Summer, Autumn or Winter
tags.0 string optional Minimum: 2
items.0 string optional Valid item id

Deletes an outfit from the database

Example request:

curl -X DELETE "http://lakoketa.test/api/v1/outfits/{outfit}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/outfits/{outfit}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/v1/outfits/{outfit}

Subscription Hooks

Handles requests for subscription renewals from apple

Example request:

curl -X POST "http://lakoketa.test/api/v1/subscription-hooks" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/subscription-hooks",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/subscription-hooks

Subscriptions

Validates the given receipt with apple and subscribes the user to out system

Expects base64 encoded receipt parameter

Example request:

curl -X POST "http://lakoketa.test/api/v1/subscriptions" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/subscriptions",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/subscriptions

Usages

Returns the remaining usages for the logged user

Example request:

curl -X GET "http://lakoketa.test/api/v1/usages" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/usages",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": {
        "create-item": 5,
        "create-outfit": 1,
        "view-w2w": 6
    }
}

HTTP Request

GET api/v1/usages

HEAD api/v1/usages

User Preferences

Saves the user's preferences

Example request:

curl -X POST "http://lakoketa.test/api/v1/users/preferences" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/users/preferences",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/users/preferences

Shows the user's preferences

Example request:

curl -X GET "http://lakoketa.test/api/v1/users/preferences" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/users/preferences",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": {
        "colors": [
            "Blue"
        ],
        "styles": [
            "Casual"
        ],
        "shops": [
            "Forever 21"
        ]
    }
}

HTTP Request

GET api/v1/users/preferences

HEAD api/v1/users/preferences

Users

Returns user information

Example request:

curl -X GET "http://lakoketa.test/api/v1/users/me" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/users/me",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": {
        "id": 2,
        "name": "Ivan",
        "email": "test@test.com",
        "avatar": "http:\/\/www.gravatar.com\/avatar\/",
        "subscription_end_date": null,
        "preferences": {
            "colors": [
                "Blue"
            ],
            "styles": [
                "Casual"
            ],
            "shops": [
                "Forever 21"
            ]
        }
    }
}

HTTP Request

GET api/v1/users/me

HEAD api/v1/users/me

Saves users avatar

Example request:

curl -X PUT "http://lakoketa.test/api/v1/users/avatar" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/users/avatar",
    "method": "PUT",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PUT api/v1/users/avatar

api/v1/users/me

Example request:

curl -X PUT "http://lakoketa.test/api/v1/users/me" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/users/me",
    "method": "PUT",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PUT api/v1/users/me

Wardrobe

Saves item to user's wardrobe

Example request:

curl -X POST "http://lakoketa.test/api/v1/wardrobe/items/{item}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/wardrobe/items/{item}",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/wardrobe/items/{item}

Saves temporary outfit to user's wardrobe

Expects items_hash

Outfit name might be specified by name parameter

Example request:

curl -X POST "http://lakoketa.test/api/v1/wardrobe/outfits" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/wardrobe/outfits",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/wardrobe/outfits

What To Wear

Returns outfit recommendations base on passed criteria

Example request:

curl -X GET "http://lakoketa.test/api/v1/w2w" \
-H "Accept: application/json" \
    -d "preferred_item"="911240285" \
    -d "brands"="repellat" \
    -d "seasons"="repellat" \
    -d "styles"="repellat" \
    -d "colors"="repellat" \
    -d "seasons.0"="Winter" \
    -d "styles.0"="Classy" \
    -d "colors.0"="Silver" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/w2w",
    "method": "GET",
    "data": {
        "preferred_item": 911240285,
        "brands": "repellat",
        "seasons": "repellat",
        "styles": "repellat",
        "colors": "repellat",
        "seasons.0": "Winter",
        "styles.0": "Classy",
        "colors.0": "Silver"
},
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": []
}

HTTP Request

GET api/v1/w2w

HEAD api/v1/w2w

Parameters

Parameter Type Status Description
preferred_item numeric optional Valid item id
brands array optional
seasons array optional
styles array optional
colors array optional Has custom validation rule
seasons.0 string optional Spring, Summer, Autumn or Winter
styles.0 string optional Casual, Sporty, Business, Glam or Classy
colors.0 string optional Red, Orange, Yellow, Green, Blue, Purple, Pink, Black, White, Grey, Brown, Beige, Gold or Silver

general

Display Swagger API page.

Example request:

curl -X GET "http://lakoketa.test/api/documentation" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/documentation",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "message": "Call to undefined function Swagger\\scan()",
    "exception": "Symfony\\Component\\Debug\\Exception\\FatalThrowableError",
    "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/darkaonline\/l5-swagger\/src\/Generator.php",
    "line": 124,
    "trace": [
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/darkaonline\/l5-swagger\/src\/Generator.php",
            "line": 66,
            "function": "scanFilesForDocumentation",
            "class": "L5Swagger\\Generator",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/darkaonline\/l5-swagger\/src\/Http\/Controllers\/SwaggerController.php",
            "line": 48,
            "function": "generateDocs",
            "class": "L5Swagger\\Generator",
            "type": "::"
        },
        {
            "function": "api",
            "class": "L5Swagger\\Http\\Controllers\\SwaggerController",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php",
            "line": 54,
            "function": "call_user_func_array"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php",
            "line": 45,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
            "line": 212,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
            "line": 169,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 679,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
            "line": 30,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 104,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 681,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 656,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 622,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
            "line": 611,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 176,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
            "line": 30,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
            "line": 104,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 151,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
            "line": 116,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/t1sh0o\/laravel-apidoc-generator\/src\/Mpociot\/ApiDoc\/Generators\/LaravelGenerator.php",
            "line": 139,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/t1sh0o\/laravel-apidoc-generator\/src\/Mpociot\/ApiDoc\/Generators\/AbstractGenerator.php",
            "line": 152,
            "function": "callRoute",
            "class": "Mpociot\\ApiDoc\\Generators\\LaravelGenerator",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/t1sh0o\/laravel-apidoc-generator\/src\/Mpociot\/ApiDoc\/Generators\/LaravelGenerator.php",
            "line": 79,
            "function": "getRouteResponse",
            "class": "Mpociot\\ApiDoc\\Generators\\AbstractGenerator",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/t1sh0o\/laravel-apidoc-generator\/src\/Mpociot\/ApiDoc\/Commands\/GenerateDocumentation.php",
            "line": 264,
            "function": "processRoute",
            "class": "Mpociot\\ApiDoc\\Generators\\LaravelGenerator",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/t1sh0o\/laravel-apidoc-generator\/src\/Mpociot\/ApiDoc\/Commands\/GenerateDocumentation.php",
            "line": 85,
            "function": "processLaravelRoutes",
            "class": "Mpociot\\ApiDoc\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "function": "handle",
            "class": "Mpociot\\ApiDoc\\Commands\\GenerateDocumentation",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 29,
            "function": "call_user_func_array"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 87,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 31,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php",
            "line": 572,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 183,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/symfony\/console\/Command\/Command.php",
            "line": 255,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 170,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 198,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/app\/Console\/Commands\/GenDocs.php",
            "line": 50,
            "function": "call",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "function": "handle",
            "class": "App\\Console\\Commands\\GenDocs",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 29,
            "function": "call_user_func_array"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 87,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php",
            "line": 31,
            "function": "callBoundMethod",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php",
            "line": 572,
            "function": "call",
            "class": "Illuminate\\Container\\BoundMethod",
            "type": "::"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 183,
            "function": "call",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/symfony\/console\/Command\/Command.php",
            "line": 255,
            "function": "execute",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php",
            "line": 170,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Command\\Command",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/symfony\/console\/Application.php",
            "line": 886,
            "function": "run",
            "class": "Illuminate\\Console\\Command",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/symfony\/console\/Application.php",
            "line": 262,
            "function": "doRunCommand",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/symfony\/console\/Application.php",
            "line": 145,
            "function": "doRun",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php",
            "line": 89,
            "function": "run",
            "class": "Symfony\\Component\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php",
            "line": 122,
            "function": "run",
            "class": "Illuminate\\Console\\Application",
            "type": "->"
        },
        {
            "file": "\/Users\/tishojordanov\/projects\/lakoketa\/artisan",
            "line": 37,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Console\\Kernel",
            "type": "->"
        }
    ]
}

HTTP Request

GET api/documentation

HEAD api/documentation

Display Oauth2 callback pages.

Example request:

curl -X GET "http://lakoketa.test/api/oauth2-callback" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth2-callback",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/oauth2-callback

HEAD api/oauth2-callback

Authorize a client to access the user's account.

Example request:

curl -X GET "http://lakoketa.test/api/oauth/authorize" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/authorize",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/oauth/authorize

HEAD api/oauth/authorize

Approve the authorization request.

Example request:

curl -X POST "http://lakoketa.test/api/oauth/authorize" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/authorize",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/oauth/authorize

Deny the authorization request.

Example request:

curl -X DELETE "http://lakoketa.test/api/oauth/authorize" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/authorize",
    "method": "DELETE",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/oauth/authorize

Authorize a client to access the user's account.

Example request:

curl -X POST "http://lakoketa.test/api/oauth/token" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/token",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/oauth/token

Get all of the authorized tokens for the authenticated user.

Example request:

curl -X GET "http://lakoketa.test/api/oauth/tokens" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/tokens",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/oauth/tokens

HEAD api/oauth/tokens

Delete the given token.

Example request:

curl -X DELETE "http://lakoketa.test/api/oauth/tokens/{token_id}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/tokens/{token_id}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/oauth/tokens/{token_id}

Get a fresh transient token cookie for the authenticated user.

Example request:

curl -X POST "http://lakoketa.test/api/oauth/token/refresh" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/token/refresh",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/oauth/token/refresh

Get all of the clients for the authenticated user.

Example request:

curl -X GET "http://lakoketa.test/api/oauth/clients" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/clients",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/oauth/clients

HEAD api/oauth/clients

Store a new client.

Example request:

curl -X POST "http://lakoketa.test/api/oauth/clients" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/clients",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/oauth/clients

Update the given client.

Example request:

curl -X PUT "http://lakoketa.test/api/oauth/clients/{client_id}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/clients/{client_id}",
    "method": "PUT",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PUT api/oauth/clients/{client_id}

Delete the given client.

Example request:

curl -X DELETE "http://lakoketa.test/api/oauth/clients/{client_id}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/clients/{client_id}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/oauth/clients/{client_id}

Get all of the available scopes for the application.

Example request:

curl -X GET "http://lakoketa.test/api/oauth/scopes" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/scopes",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/oauth/scopes

HEAD api/oauth/scopes

Get all of the personal access tokens for the authenticated user.

Example request:

curl -X GET "http://lakoketa.test/api/oauth/personal-access-tokens" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/personal-access-tokens",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/oauth/personal-access-tokens

HEAD api/oauth/personal-access-tokens

Create a new personal access token for the user.

Example request:

curl -X POST "http://lakoketa.test/api/oauth/personal-access-tokens" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/personal-access-tokens",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/oauth/personal-access-tokens

Delete the given token.

Example request:

curl -X DELETE "http://lakoketa.test/api/oauth/personal-access-tokens/{token_id}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/oauth/personal-access-tokens/{token_id}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/oauth/personal-access-tokens/{token_id}

Handle a registration request for the application.

Example request:

curl -X POST "http://lakoketa.test/api/v1/oauth/register" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/oauth/register",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/oauth/register

Display a listing of the resource.

Example request:

curl -X GET "http://lakoketa.test/api/v1/wishlist" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/wishlist",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": []
}

HTTP Request

GET api/v1/wishlist

HEAD api/v1/wishlist

Store a newly created resource in storage.

Example request:

curl -X POST "http://lakoketa.test/api/v1/wishlist" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/wishlist",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/wishlist

Remove the specified resource from storage.

Example request:

curl -X DELETE "http://lakoketa.test/api/v1/wishlist/{wishlist}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/wishlist/{wishlist}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/v1/wishlist/{wishlist}

Display a listing of the resource.

Example request:

curl -X GET "http://lakoketa.test/api/v1/favorite" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/favorite",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": {
        "items": [],
        "outfits": []
    }
}

HTTP Request

GET api/v1/favorite

HEAD api/v1/favorite

Store a newly created resource in storage.

Example request:

curl -X POST "http://lakoketa.test/api/v1/favorite" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/favorite",
    "method": "POST",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/v1/favorite

Remove the specified resource from storage.

Example request:

curl -X DELETE "http://lakoketa.test/api/v1/favorite/{favorite}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/favorite/{favorite}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/v1/favorite/{favorite}

retailers

List the top 20 retailers

Accepts name

Example request:

curl -X GET "http://lakoketa.test/api/v1/retailers" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "http://lakoketa.test/api/v1/retailers",
    "method": "GET",
    "headers": {
        "accept": "application/json"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "data": [
        {
            "id": 58,
            "external_id": 111,
            "name": "Nike",
            "brand": "Nike",
            "score": 5884,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/nike.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 491
        },
        {
            "id": 55,
            "external_id": 106,
            "name": "Puma",
            "brand": "Puma",
            "score": 2063,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/puma.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 265
        },
        {
            "id": 202,
            "external_id": 1034,
            "name": "Under Armour",
            "brand": "Under Armour",
            "score": 4810,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/underarmour.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 150
        },
        {
            "id": 416,
            "external_id": 2516,
            "name": "Lole",
            "brand": null,
            "score": 1089,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/lolewomen.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 93
        },
        {
            "id": 255,
            "external_id": 1697,
            "name": "Lululemon",
            "brand": "Lululemon",
            "score": 1158,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/lululemon.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 46
        },
        {
            "id": 327,
            "external_id": 2080,
            "name": "Sweaty Betty",
            "brand": "Sweaty Betty",
            "score": 353,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/sweatybetty.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 46
        },
        {
            "id": 131,
            "external_id": 457,
            "name": "Athleta",
            "brand": "Athleta",
            "score": 985,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/gap.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 45
        },
        {
            "id": 476,
            "external_id": 2621,
            "name": "Opening Ceremony",
            "brand": null,
            "score": 1668,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/openingceremony.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 43
        },
        {
            "id": 208,
            "external_id": 1103,
            "name": "Alexander Wang",
            "brand": "Alexander Wang",
            "score": 712,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/alexanderwang.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 41
        },
        {
            "id": 282,
            "external_id": 1889,
            "name": "Splits59",
            "brand": "Splits59",
            "score": 74,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/splits59.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 40
        },
        {
            "id": 248,
            "external_id": 1658,
            "name": "Stella McCartney",
            "brand": "Stella McCartney",
            "score": 1203,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/stellamccartney.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 35
        },
        {
            "id": 124,
            "external_id": 421,
            "name": "True Religion",
            "brand": "True Religion",
            "score": 1553,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/truereligion.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 34
        },
        {
            "id": 206,
            "external_id": 1060,
            "name": "Tibi",
            "brand": "Tibi",
            "score": 433,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/tibi.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 32
        },
        {
            "id": 40,
            "external_id": 59,
            "name": "New York & Co.",
            "brand": "New York & Co.",
            "score": 0,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/nyandcompany.com",
            "created_at": "2018-12-04 12:53:56",
            "updated_at": "2018-12-04 12:53:56",
            "items_count": 32
        },
        {
            "id": 220,
            "external_id": 1340,
            "name": "Gucci",
            "brand": "Gucci",
            "score": 3045,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/gucci.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 31
        },
        {
            "id": 128,
            "external_id": 434,
            "name": "Juicy Couture",
            "brand": "Juicy Couture",
            "score": 1336,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/juicycouture.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 30
        },
        {
            "id": 118,
            "external_id": 364,
            "name": "Calvin Klein",
            "brand": "Calvin Klein",
            "score": 3676,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/calvinklein.us",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 26
        },
        {
            "id": 24,
            "external_id": 36,
            "name": "Forever 21",
            "brand": "Forever 21",
            "score": 0,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/forever21.com",
            "created_at": "2018-12-04 12:53:56",
            "updated_at": "2018-12-04 12:53:56",
            "items_count": 26
        },
        {
            "id": 408,
            "external_id": 2493,
            "name": "Fendi",
            "brand": null,
            "score": 1867,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/fendi.com",
            "created_at": "2018-12-04 12:53:57",
            "updated_at": "2018-12-04 12:53:57",
            "items_count": 26
        },
        {
            "id": 42,
            "external_id": 61,
            "name": "Old Navy",
            "brand": "Old Navy",
            "score": 4977,
            "url": "https:\/\/logo.clearbit.com\/http:\/\/gap.com",
            "created_at": "2018-12-04 12:53:56",
            "updated_at": "2018-12-04 12:53:56",
            "items_count": 26
        }
    ]
}

HTTP Request

GET api/v1/retailers

HEAD api/v1/retailers