UVS Farmers Marketplace

Edit this file

CATEGORIES

path: /category/ authentication: Required example: method: GET response:


        {
            "count": 2,
            "next": null,
            "previous": null,
            "result": [{
                    "id": 1,
                    "title": "Fake Vegetables",
                    "iconfile_id": 123,
                    "description": "This is a good category"
                },
                {
                    "id": 2,
                    "title": "Fake Fruites",
                    "iconfile_id": 12333,
                    "description": "Another cool category description here"
                }
            ]
        }

POSTS

path: /posts/ authentication: Required example: method: GET response:


        {
            "count": 2,
            "next": null,
            "previous": null,
            "result": [{
                    "id": 1,
                    "title": "Hello World",
                    "excerpt": "TEST Blog00x01",
                    "body": "This is our TEST Blog"
                },
                {
                    "id": 2,
                    "title": "Hello UVS",
                    "excerpt": "TEST Blog00x02",
                    "body": "Another TEST here"
                }
            ]
        }

PRODUCTS

path: /products/ authentication: Required example: method: GET response:


        {
            "result": [{
                    "id": 1,
                    "img": "ricesssssss.jpeg",
                    "title": "Test Product 1",
                    "price": "$102",
                    "packaging": "6 bottles",
                    "body": "lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum "
                },
                {
                    "id": 2,
                    "img": "chickpeaaaaa.jpeg",
                    "title": "Test Product 2",
                    "price": "$302",
                    "packaging": "1kg",
                    "body": "ipsum ipasdasdasipsum ipsum lorem ipsum "
                },
                {
                    "id": 3,
                    "img": "ricesssssss.jpeg",
                    "title": "Test Product 3",
                    "price": "$105",
                    "packaging": "1 litre",
                    "body": "ipsum ipsum ipsum ipsum ipsum ipsum lasdasdpsum "
                }
            ]
        }

SLIDES

path: /slides/ authentication: Required example: method: GET response:


        {
            "result": [{
                    "id": 1,
                    "img": "http://somewhereelse.com/img.jpg",
                    "title": "Test Product 1",
                    "call_to_action": "https://google.com"
                },
                {
                    "id": 2,
                    "img": "http://somewhereelse.com/img2.jpg",
                    "title": "Test Product 1",
                    "call_to_action": "https://yahoo.com"
                },
                {
                    "id": 3,
                    "img": "http://somewhereelse.com/img3.jpg",
                    "title": "Test Product 1",
                    "call_to_action": "https://aol.com"
                }
            ]
        }

TEST

path: * authentication: example: method: GET response:


        {
            "result": [{
                    "id": 1,
                    "title": "Hello World",
                    "excerpt": "TEST Blog00x01",
                    "body": "This is our TEST Blog"
                },
                {
                    "id": 2,
                    "title": "Hello UVS",
                    "excerpt": "TEST Blog00x02",
                    "body": "Another TEST here"
                },
                {
                    "id": 3,
                    "title": "Hello our Team",
                    "excerpt": "TEST Blog00x03",
                    "body": "Halo!"
                }
            ]
        }