Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

API - Get Functionality #3

@KatjaRademacher

Description

@KatjaRademacher

The api should be able to handle the following get functions:

  • Get All
  • Get by Id
  • Get By Region

I have already setup the API base. The file that needs to be changed to enable this functionality is called PropertiesDAO.php in folder app/DB/DAO/.

I have already created the methods for these three functionalities:

  • get ($id) for get all and get by id
  • searchByCounty($county) for searching by the county

You will need to prepare the SQL query and see what it returns from the database.

I have attached the file with the structure of the returned array at the end.

If it does not comply to this format, please change the object structure in the app/models/PropertyModel.php file.

sample-read-data.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions