Coder Social home page Coder Social logo

avida_app's Introduction

Avida App CMS

Table of contents

  1. Projects

Get Projects

URL : /api/projects

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

{
    "data": [
        {
            "id": 156,
            "prop": "Aspira",
            "property_type": "houseandlot",
            "menuImage": "http://localhost/avida_app/wp-content/uploads/2019/01/Ken_Kaneki3.png",
            "prop_logo": "http://localhost/avida_app/wp-content/uploads/2019/01/110pixels.jpg",
            "cover_image": "http://localhost/avida_app/wp-content/uploads/2019/01/samplethumb.jpeg",
            "ov_description": "Start a new week by sharing ASPIRATIONS.",
            "overview": "<p>Cagayan De Oro Gateway Corp., a joint partnership between Ayala Land Inc. (ALI), and the Antonio Floirendo Group of Companies (Anflo Group) offers residential spaces and new retail opportunities for the modern contemporary Filipino with its second tower offering in Cagayan de Oro-Avida Towers Aspira.</p>\n<p>Avida Towers Aspira further advances living in CDO by providing homes that are situated at a safe and advantageous location, masterfully planned and designed to suit the evolving market of CDO. Handling the development&#8217;s Marketing and Sales Operations is Avida Land Corp. The towers are poised to become the top choice for a Home in the City, catering to those looking for a secure, convenient, and relaxing place to call their own. Its resort-like amenities ensure that there&#8217;s never a dull day at home, even in the confines of your own unit. Avida Towers Aspira is carefree living every day.</p>\n<p>Location: Along Ramon Chavez St., Cagayan De Oro City.<br />Size of Units: Approx. 22.4 sq.m. to 91.56 sq.m.<br />Price Range: Studio: Php 1.9M to Php 2.3M<br />1 Bedroom: Php 3.1M to Php 4.0M<br />2 Bedroom: Php 6.1M to Php 6.3M<br />1 BR Bi Level: Php 4.7M to Php 5.7M<br />3 BR Bi Level: Php 8.6 to Php 9.1M</p>\n<p>TLTS No.: TLS – 13 – 001 (NMR10)</p>\n",
            "overview_image": "http://localhost/avida_app/wp-content/uploads/2019/01/step4-big.jpg",
            "amen_titles": [
                "Shaded Deck and Pool Area",
                "Pool Area",
                "Play Area"
            ],
            "amen_images": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg"
            ],
            "floorplan_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg"
            ],
            "floorplan_title": [
                "Floor plan 1",
                "Floor plan 2"
            ],
            "gallery_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/samplethumb.jpeg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/feelsbadman.jpeg"
            ],
            "gallery_title": [
                "city",
                "feelsbadman"
            ],
            "location_lat": "10",
            "location_long": "20",
            "location_title": "Avida Towers Aspira",
            "location_image": "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
            "city": {
                "id": 75,
                "name": "Quezon City",
                "body": ""
            },
            "area": {
                "id": 32,
                "name": "Metro Manila",
                "body": ""
            },
            "unitplans_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Optimind02.png"
            ],
            "unitplans_title": [
                "unitplan1",
                "unitplan2"
            ],
            "ios_video": "Avida Towers Aspira",
            "and_video": "vf1FaFuFm",
            "last_updated": "2019-01-14 07:52:00"
        }
    ],
    "meta": {
        "message": "Got All Data",
        "code": 200
    }
}

Get Projects By Property Type

URL : /api/projects?property_type={houseandlot/condominium}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

{
    "data": [
        {
            "id": 232,
            "prop": "another project in makati",
            "property_type": "condominium",
            "menuImage": "http://localhost/avida_app/wp-content/uploads/2019/01/feelsbadman.jpeg",
            "prop_logo": "http://localhost/avida_app/wp-content/uploads/2019/01/Optimind02.png",
            "cover_image": false,
            "ov_description": "test",
            "overview": "<p>overview</p>\n",
            "overview_image": "http://localhost/avida_app/wp-content/uploads/2019/01/110pixels.jpg",
            "amen_titles": [
                "am1",
                "am2"
            ],
            "amen_images": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg"
            ],
            "floorplan_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg"
            ],
            "floorplan_title": [
                "plann1",
                "plan2"
            ],
            "gallery_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/110pixels.jpg"
            ],
            "gallery_title": [
                "3f"
            ],
            "location_lat": "14",
            "location_long": "62",
            "location_title": "location title",
            "location_image": "http://localhost/avida_app/wp-content/uploads/2019/01/step4-big.jpg",
            "city": {
                "id": 173,
                "name": "Cebu City",
                "body": ""
            },
            "area": {
                "id": 170,
                "name": "Visayas",
                "body": ""
            },
            "unitplans_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg"
            ],
            "unitplans_title": [
                "unitplan 111"
            ],
            "ios_video": "ios",
            "and_video": "and",
            "last_updated": "2019-01-16 05:47:00"
        },
        {
            "id": 172,
            "prop": "proj in makati",
            "property_type": "condominium",
            "menuImage": "http://localhost/avida_app/wp-content/uploads/2019/01/feelsbadman.jpeg",
            "prop_logo": "http://localhost/avida_app/wp-content/uploads/2019/01/Optimind02.png",
            "cover_image": "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
            "ov_description": "test",
            "overview": "<p>test</p>\n",
            "overview_image": "http://localhost/avida_app/wp-content/uploads/2019/01/110pixels.jpg",
            "amen_titles": [
                "amenity1"
            ],
            "amen_images": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg"
            ],
            "floorplan_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg"
            ],
            "floorplan_title": [
                "floorplan 1",
                "floorplan 2"
            ],
            "gallery_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg"
            ],
            "gallery_title": [
                "flowr"
            ],
            "location_lat": "123",
            "location_long": "321",
            "location_title": "fdsfsd",
            "location_image": "http://localhost/avida_app/wp-content/uploads/2019/01/step4-big.jpg",
            "city": {
                "id": 171,
                "name": "Makati City",
                "body": ""
            },
            "area": {
                "id": 32,
                "name": "Metro Manila",
                "body": ""
            },
            "unitplans_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg"
            ],
            "unitplans_title": [
                "unitplan1"
            ],
            "ios_video": "iosvid",
            "and_video": "andvid",
            "last_updated": "2019-01-16 02:54:00"
        }
    ],
    "meta": {
        "message": "Got All Data",
        "code": 200
    }
}

Get Projects with Search

URL : /api/projects?s={keyword}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

URL: /api/projects?s=floirendo

One of the projects in overview property has the keyword 'floirendo'

{
    "data": [
        {
            "id": 156,
            "prop": "Aspira",
            "property_type": "houseandlot",
            "menuImage": "http://localhost/avida_app/wp-content/uploads/2019/01/Ken_Kaneki3.png",
            "prop_logo": "http://localhost/avida_app/wp-content/uploads/2019/01/110pixels.jpg",
            "cover_image": "http://localhost/avida_app/wp-content/uploads/2019/01/samplethumb.jpeg",
            "ov_description": "Start a new week by sharing ASPIRATIONS.",
            "overview": "<p>Cagayan De Oro Gateway Corp., a joint partnership between Ayala Land Inc. (ALI), and the Antonio Floirendo Group of Companies (Anflo Group) offers residential spaces and new retail opportunities for the modern contemporary Filipino with its second tower offering in Cagayan de Oro-Avida Towers Aspira.</p>\n<p>Avida Towers Aspira further advances living in CDO by providing homes that are situated at a safe and advantageous location, masterfully planned and designed to suit the evolving market of CDO. Handling the development&#8217;s Marketing and Sales Operations is Avida Land Corp. The towers are poised to become the top choice for a Home in the City, catering to those looking for a secure, convenient, and relaxing place to call their own. Its resort-like amenities ensure that there&#8217;s never a dull day at home, even in the confines of your own unit. Avida Towers Aspira is carefree living every day.</p>\n<p>Location: Along Ramon Chavez St., Cagayan De Oro City.<br />Size of Units: Approx. 22.4 sq.m. to 91.56 sq.m.<br />Price Range: Studio: Php 1.9M to Php 2.3M<br />1 Bedroom: Php 3.1M to Php 4.0M<br />2 Bedroom: Php 6.1M to Php 6.3M<br />1 BR Bi Level: Php 4.7M to Php 5.7M<br />3 BR Bi Level: Php 8.6 to Php 9.1M</p>\n<p>TLTS No.: TLS – 13 – 001 (NMR10)</p>\n",
            "overview_image": "http://localhost/avida_app/wp-content/uploads/2019/01/step4-big.jpg",
            "amen_titles": [
                "Shaded Deck and Pool Area",
                "Pool Area",
                "Play Area"
            ],
            "amen_images": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg"
            ],
            "floorplan_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg"
            ],
            "floorplan_title": [
                "Floor plan 1",
                "Floor plan 2"
            ],
            "gallery_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/samplethumb.jpeg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/feelsbadman.jpeg"
            ],
            "gallery_title": [
                "city",
                "feelsbadman"
            ],
            "location_lat": "10",
            "location_long": "20",
            "location_title": "Avida Towers Aspira",
            "location_image": "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
            "city": {
                "id": 75,
                "name": "Quezon City",
                "body": ""
            },
            "area": {
                "id": 32,
                "name": "Metro Manila",
                "body": ""
            },
            "unitplans_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Optimind02.png"
            ],
            "unitplans_title": [
                "unitplan1",
                "unitplan2"
            ],
            "ios_video": "Avida Towers Aspira",
            "and_video": "vf1FaFuFm",
            "last_updated": "2019-01-14 07:52:00"
        }
    ],
    "meta": {
        "message": "Got All Data",
        "code": 200
    }
}

Get Projects By Area Id

URL : /api/projects/area/{area_id}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

area_id : 32

{
    "data": [
        {
            "id": 172,
            "prop": "proj in makati",
            "property_type": "condominium",
            "menuImage": "http://localhost/avida_app/wp-content/uploads/2019/01/feelsbadman.jpeg",
            "prop_logo": "http://localhost/avida_app/wp-content/uploads/2019/01/Optimind02.png",
            "cover_image": "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
            "ov_description": "test",
            "overview": "<p>test</p>\n",
            "overview_image": "http://localhost/avida_app/wp-content/uploads/2019/01/110pixels.jpg",
            "amen_titles": [
                "amenity1"
            ],
            "amen_images": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg"
            ],
            "floorplan_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg"
            ],
            "floorplan_title": [
                "floorplan 1",
                "floorplan 2"
            ],
            "gallery_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg"
            ],
            "gallery_title": [
                "flowr"
            ],
            "location_lat": "123",
            "location_long": "321",
            "location_title": "fdsfsd",
            "location_image": "http://localhost/avida_app/wp-content/uploads/2019/01/step4-big.jpg",
            "city": {
                "id": 171,
                "name": "Makati City",
                "body": ""
            },
            "area": {
                "id": 32,
                "name": "Metro Manila",
                "body": ""
            },
            "unitplans_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg"
            ],
            "unitplans_title": [
                "unitplan1"
            ],
            "ios_video": "iosvid",
            "and_video": "andvid",
            "last_updated": "2019-01-16 02:54:00"
        },
        {
            "id": 156,
            "prop": "Aspira",
            "property_type": "houseandlot",
            "menuImage": "http://localhost/avida_app/wp-content/uploads/2019/01/Ken_Kaneki3.png",
            "prop_logo": "http://localhost/avida_app/wp-content/uploads/2019/01/110pixels.jpg",
            "cover_image": "http://localhost/avida_app/wp-content/uploads/2019/01/samplethumb.jpeg",
            "ov_description": "Start a new week by sharing ASPIRATIONS.",
            "overview": "<p>Cagayan De Oro Gateway Corp., a joint partnership between Ayala Land Inc. (ALI), and the Antonio Floirendo Group of Companies (Anflo Group) offers residential spaces and new retail opportunities for the modern contemporary Filipino with its second tower offering in Cagayan de Oro-Avida Towers Aspira.</p>\n<p>Avida Towers Aspira further advances living in CDO by providing homes that are situated at a safe and advantageous location, masterfully planned and designed to suit the evolving market of CDO. Handling the development&#8217;s Marketing and Sales Operations is Avida Land Corp. The towers are poised to become the top choice for a Home in the City, catering to those looking for a secure, convenient, and relaxing place to call their own. Its resort-like amenities ensure that there&#8217;s never a dull day at home, even in the confines of your own unit. Avida Towers Aspira is carefree living every day.</p>\n<p>Location: Along Ramon Chavez St., Cagayan De Oro City.<br />Size of Units: Approx. 22.4 sq.m. to 91.56 sq.m.<br />Price Range: Studio: Php 1.9M to Php 2.3M<br />1 Bedroom: Php 3.1M to Php 4.0M<br />2 Bedroom: Php 6.1M to Php 6.3M<br />1 BR Bi Level: Php 4.7M to Php 5.7M<br />3 BR Bi Level: Php 8.6 to Php 9.1M</p>\n<p>TLTS No.: TLS – 13 – 001 (NMR10)</p>\n",
            "overview_image": "http://localhost/avida_app/wp-content/uploads/2019/01/step4-big.jpg",
            "amen_titles": [
                "Shaded Deck and Pool Area",
                "Pool Area",
                "Play Area"
            ],
            "amen_images": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/1200x900.jpg"
            ],
            "floorplan_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg"
            ],
            "floorplan_title": [
                "Floor plan 1",
                "Floor plan 2"
            ],
            "gallery_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/samplethumb.jpeg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/feelsbadman.jpeg"
            ],
            "gallery_title": [
                "city",
                "feelsbadman"
            ],
            "location_lat": "10",
            "location_long": "20",
            "location_title": "Avida Towers Aspira",
            "location_image": "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
            "city": {
                "id": 75,
                "name": "Quezon City",
                "body": ""
            },
            "area": {
                "id": 32,
                "name": "Metro Manila",
                "body": ""
            },
            "unitplans_image": [
                "http://localhost/avida_app/wp-content/uploads/2019/01/Bg_geometric.jpg",
                "http://localhost/avida_app/wp-content/uploads/2019/01/Optimind02.png"
            ],
            "unitplans_title": [
                "unitplan1",
                "unitplan2"
            ],
            "ios_video": "Avida Towers Aspira",
            "and_video": "vf1FaFuFm",
            "last_updated": "2019-01-14 07:52:00"
        }
    ],
    "meta": {
        "message": "Got All Data",
        "code": 200
    }
}

Get Projects By City Id

URL : /api/projects/city/{city_id}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content city_id: 173

{
    "data": [
        {
            "id": 232,
            "prop": "another project in makati",
            "property_type": "condominium",
            "menuImage": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/feelsbadman.jpeg",
            "prop_logo": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Optimind02.png",
            "cover_image": false,
            "ov_description": "test",
            "overview": "<p>overview</p>\n",
            "overview_image": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/110pixels.jpg",
            "amen_titles": [
                "am1",
                "am2"
            ],
            "amen_images": [
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Bg_geometric.jpg",
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Bg_geometric.jpg"
            ],
            "floorplan_image": [
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Trista-Floor-Plan.jpg",
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg"
            ],
            "floorplan_title": [
                "plann1",
                "plan2"
            ],
            "gallery_image": [
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/110pixels.jpg"
            ],
            "gallery_title": [
                "3f"
            ],
            "location_lat": "14",
            "location_long": "62",
            "location_title": "location title",
            "location_image": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/step4-big.jpg",
            "city": {
                "id": 173,
                "name": "Cebu City",
                "body": ""
            },
            "area": {
                "id": 170,
                "name": "Visayas",
                "body": ""
            },
            "unitplans_image": [
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg"
            ],
            "unitplans_title": [
                "unitplan 111"
            ],
            "ios_video": "ios",
            "and_video": "and",
            "last_updated": "2019-01-16 05:47:00"
        },
        {
            "id": 174,
            "prop": "proj in cebu",
            "property_type": "houseandlot",
            "menuImage": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/samplethumb.jpeg",
            "prop_logo": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Optimind02.png",
            "cover_image": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Ken_Kaneki3.png",
            "ov_description": "test ov description cebu",
            "overview": "<p><strong>test ov cebu</strong></p>\n",
            "overview_image": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/samplethumb.jpeg",
            "amen_titles": [
                "amen1"
            ],
            "amen_images": [
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/1200x900.jpg"
            ],
            "floorplan_image": [
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg"
            ],
            "floorplan_title": [
                "floor"
            ],
            "gallery_image": [
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/step4-big.jpg"
            ],
            "gallery_title": [
                "test"
            ],
            "location_lat": "32",
            "location_long": "17",
            "location_title": "test location title cebu",
            "location_image": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Bg_geometric.jpg",
            "city": {
                "id": 173,
                "name": "Cebu City",
                "body": ""
            },
            "area": {
                "id": 170,
                "name": "Visayas",
                "body": ""
            },
            "unitplans_image": [
                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/110pixels.jpg"
            ],
            "unitplans_title": [
                "unitplans"
            ],
            "ios_video": "ios_video_test",
            "and_video": "and_video",
            "last_updated": "2019-01-16 03:31:00"
        }
    ],
    "meta": {
        "message": "Got All Data",
        "code": 200
    }
}

Get Single Project

URL : /api/projects/single_project/{project_id}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

project_id : 174

{
    "data": {
        "id": 174,
        "prop": "proj in cebu",
        "property_type": "houseandlot",
        "menuImage": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/samplethumb.jpeg",
        "prop_logo": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Optimind02.png",
        "cover_image": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Ken_Kaneki3.png",
        "ov_description": "test ov description cebu",
        "overview": "<p><strong>test ov cebu</strong></p>\n",
        "overview_image": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/samplethumb.jpeg",
        "amen_titles": [
            "amen1"
        ],
        "amen_images": [
            "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/1200x900.jpg"
        ],
        "floorplan_image": [
            "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Macy-Floor-Plan.jpg"
        ],
        "floorplan_title": [
            "floor"
        ],
        "gallery_image": [
            "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/step4-big.jpg"
        ],
        "gallery_title": [
            "test"
        ],
        "location_lat": "32",
        "location_long": "17",
        "location_title": "test location title cebu",
        "location_image": "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Bg_geometric.jpg",
        "city": {
            "id": 173,
            "name": "Cebu City",
            "body": ""
        },
        "area": {
            "id": 170,
            "name": "Visayas",
            "body": ""
        },
        "unitplans_image": [
            "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/110pixels.jpg"
        ],
        "unitplans_title": [
            "unitplans"
        ],
        "ios_video": "ios_video_test",
        "and_video": "and_video",
        "last_updated": "2019-01-16 03:31:00"
    },
    "meta": {
        "message": "Single Project retrieved",
        "code": 200
    }
}

Get All Areas

URL : /api/areas

Method : POST

Auth required : YES

Params (optional)

Parameter Type
device_id String

Success Response

Code : 200 OK

Sample Content

{
    "data": [
        {
            "id": 170,
            "area_name": "Visayas",
            "cities": [
                {
                    "id": 173,
                    "city_name": "Cebu City",
                    "projects": [
                        {
                            "id": 232,
                            "project_name": "another project in makati",
                            "coverimages_title": [
                                "test"
                            ],
                            "coverimages_image": [
                                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Optimind02.png"
                            ],
                            "excerpt": ""
                        },
                        {
                            "id": 174,
                            "project_name": "proj in cebu",
                            "coverimages_title": [
                                "cebucover"
                            ],
                            "coverimages_image": [
                                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Optimind02.png"
                            ],
                            "excerpt": ""
                        }
                    ]
                }
            ]
        },
        {
            "id": 32,
            "area_name": "Metro Manila",
            "cities": [
                {
                    "id": 171,
                    "city_name": "Makati City",
                    "projects": [
                        {
                            "id": 172,
                            "project_name": "proj in makati",
                            "coverimages_title": [],
                            "coverimages_image": [],
                            "excerpt": ""
                        },
                        {
                            "id": 156,
                            "project_name": "Aspira",
                            "coverimages_title": [
                                "test"
                            ],
                            "coverimages_image": [
                                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Optimind02.png"
                            ],
                            "excerpt": ""
                        }
                    ]
                },
                {
                    "id": 75,
                    "city_name": "Quezon City",
                    "projects": [
                        {
                            "id": 172,
                            "project_name": "proj in makati",
                            "coverimages_title": [],
                            "coverimages_image": [],
                            "excerpt": ""
                        },
                        {
                            "id": 156,
                            "project_name": "Aspira",
                            "coverimages_title": [
                                "test"
                            ],
                            "coverimages_image": [
                                "http://avidaapp.betaprojex.com/wp-content/uploads/2019/01/Optimind02.png"
                            ],
                            "excerpt": ""
                        }
                    ]
                }
            ]
        }
    ],
    "meta": {
        "message": "Got All Data",
        "code": 200
    }
}

Get Area By Id

URL : /api/areas/{area_id}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

{
    "data": {
        "ID": 32,
        "post_author": "0",
        "post_date": "2019-01-11 03:27:25",
        "post_date_gmt": "2019-01-11 03:27:25",
        "post_content": "",
        "post_title": "Metro Manila",
        "post_excerpt": "",
        "post_status": "publish",
        "comment_status": "closed",
        "ping_status": "closed",
        "post_password": "",
        "post_name": "metro-manila",
        "to_ping": "",
        "pinged": "",
        "post_modified": "2019-01-11 03:27:25",
        "post_modified_gmt": "2019-01-11 03:27:25",
        "post_content_filtered": "",
        "post_parent": 0,
        "guid": "http://avidaapp.betaprojex.com/?post_type=area&#038;p=32",
        "menu_order": 0,
        "post_type": "area",
        "post_mime_type": "",
        "comment_count": "0",
        "filter": "raw"
    },
    "meta": {
        "message": "Area Retrieved",
        "code": 200
    }
}

Get All Cities

URL : /api/cities

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

{
    "data": [
        {
            "id": 173,
            "name": "Cebu City",
            "body": ""
        },
        {
            "id": 171,
            "name": "Makati City",
            "body": ""
        },
        {
            "id": 75,
            "name": "Quezon City",
            "body": ""
        }
    ],
    "meta": {
        "message": "Got All Data",
        "code": 200
    }
}

Get City By Id

URL : /api/cities/{city_id}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content city_id: 173

{
    "data": {
        "ID": 173,
        "post_author": "0",
        "post_date": "2019-01-16 03:28:29",
        "post_date_gmt": "2019-01-16 03:28:29",
        "post_content": "",
        "post_title": "Cebu City",
        "post_excerpt": "",
        "post_status": "publish",
        "comment_status": "closed",
        "ping_status": "closed",
        "post_password": "",
        "post_name": "cebu-city",
        "to_ping": "",
        "pinged": "",
        "post_modified": "2019-01-16 04:04:57",
        "post_modified_gmt": "2019-01-16 04:04:57",
        "post_content_filtered": "",
        "post_parent": 0,
        "guid": "http://avidaapp.betaprojex.com/?post_type=city&#038;p=173",
        "menu_order": 0,
        "post_type": "city",
        "post_mime_type": "",
        "comment_count": "0",
        "filter": "raw"
    },
    "meta": {
        "message": "City Retrieved",
        "code": 200
    }
}

Get Cities By Area Id

URL : /api/cities/area/{area_id}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content area_id: 32

{
    "data": [
        {
            "id": 171,
            "name": "Makati City",
            "body": ""
        },
        {
            "id": 75,
            "name": "Quezon City",
            "body": ""
        }
    ],
    "meta": {
        "message": "Got All Data",
        "code": 200
    }
}

Get All Notifications

URL : /api/notifications

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

{
    "data": [{
        "id": 340,
        "title": "notification title",
        "body": "notification text"
    }],
    "meta": {
        "message": "Got all data.",
        "code": 200
    }
}

Get Notification By Id

URL : /api/notifications/{notification_id}

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content notification_id: 340

{
    "data": {
        "id": 340,
        "title": "notification title",
        "body": "notification text"
    },
    "meta": {
        "code": 200
    }
}

Mark Notification as read

URL : /api/notifications/read

Method : POST

Auth required : YES

Params

Parameter Type Sample
notification_id Number 15
device_id String "device_123"

Success Response

code: 201 Created

{
    "data": {
        "id": 482,
        "title": "title",
        "body": "<span style='font-size: 300%'>body</span>",
        "created_at": "2019-02-27 06:05:26"
    },
    "meta": {
        "message": "Notification marked as read",
        "code": 201
    }
}

if notification is already read

{
    "meta": {
        "message": "Notification already marked as read.",
        "code": 200
    }
}

Get Unread notification count by Device Id

URL : /api/notifications/unread_count

Method : POST

Auth required : YES

Params

Parameter Type Sample
device_id String "device_123"

Success Response

code: 200 OK

{
    "data": {
        "unread_count": 11,
        "device_id": "device_123"
    },
    "meta": {
        "code": 200
    }
}

Get About Us Content

URL : /api/about

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

{
    "data": {
        "title": "About Us",
        "content": "<strong>Transforming land, names, and lives</strong>\r\n\r\nsince it developed the vast tract of swamp land that is now the bustling city of Makati\r\n\r\n&nbsp;\r\n\r\n&nbsp;"
    },
    "meta": {
        "code": 200
    }
}

Get Privacy Policy Content

URL : /api/privacy_policy

Method : GET

Auth required : YES

Success Response

Code : 200 OK

Sample Content

{
    "data": {
        "title": "Privacy Policy",
        "content": "<div>\r\n<div><strong>1. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis</strong></div>\r\n<div>\r\n\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis\r\n<div>\r\n\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis\r\n<div>\r\n<div>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis</div>\r\n<div><strong>2. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis</strong></div>\r\n<div>\r\n\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis\r\n<div>\r\n\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis\r\n<div>\r\n<div>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis</div>\r\n</div>\r\n<div>\r\n\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis\r\n<div>\r\n\r\nLorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis\r\n<div>\r\n<div>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ratione incidunt aut rerum cupiditate accusantium corporis</div>\r\n</div>\r\n</div>\r\n</div>\r\n</div>\r\n</div>\r\n</div>\r\n</div>\r\n</div>\r\n</div>\r\n&nbsp;\r\n\r\n&nbsp;"
    },
    "meta": {
        "code": 200
    }
}

Contact us

URL : /api/contact

Method : POST

Auth required : YES

Params

Parameter Type Sample
firstname String "Jhondee"
lastname String "Diaz"
contact_num String "0912-00-00"
email String "[email protected]"
property_name String "Project ABC"
message String "Hello"

Success Response

Code : 200 OK

Sample Content

{
    "data": {
        "firstname": "Jhondee",
        "lastname": "Diaz",
        "contact_num": "0912-00-00",
        "email": "[email protected]",
        "property_name": "Project ABC",
        "message": "Hello"
    },
    "meta": {
        "message": "Inquiry successfully sent!",
        "code": 200
    }
}

Get Latest Installation Date By Device Id

URL : /api/devices

Method : POST

Auth required : YES

Params

Parameter Type
device_id String

Success Response

Code : 200 OK

Sample Content

{
    "data": {
        "id": "2",
        "device_id": "123_abc_0005555",
        "installed_at": "2019-03-08 11:11:38",
        "created_at": "2019-03-05 02:15:48"
    },
    "meta": {
        "message": "Got data.",
        "code": 200
    }
}

avida_app's People

Contributors

jhondeediaz avatar jjjjcccjjf avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.