{"id":20347758,"url":"https://github.com/subzerobo/subzerobo-pipedrive_test","last_synced_at":"2025-10-11T10:05:04.004Z","repository":{"id":144320844,"uuid":"147517984","full_name":"subzerobo/subzerobo-pipedrive_test","owner":"subzerobo","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-05T12:58:23.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T14:51:01.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subzerobo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-05T12:57:44.000Z","updated_at":"2018-09-05T12:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e3810f8-3cee-4384-9260-e92327cc70dd","html_url":"https://github.com/subzerobo/subzerobo-pipedrive_test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/subzerobo/subzerobo-pipedrive_test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fsubzerobo-pipedrive_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fsubzerobo-pipedrive_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fsubzerobo-pipedrive_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fsubzerobo-pipedrive_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subzerobo","download_url":"https://codeload.github.com/subzerobo/subzerobo-pipedrive_test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fsubzerobo-pipedrive_test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006831,"owners_count":26084203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T22:17:57.742Z","updated_at":"2025-10-11T10:05:03.987Z","avatar_url":"https://github.com/subzerobo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PipeDrive Rest-ful Test  \n  \n 1. [How To Install](#how-to-install)  \n 2. [How To Use](#how-to-use)  \n 3. [Using the Unit Test](#using-the-unit-test)\n \n## How To Install  \n  \n 1. Clone the Project using command :   \n `git clone git@github.com:subzerobo/pipedrive_test.git`  \n 2. Install the composer if you dont have it already ;-)  \n 3. Run `composer install` in the root directory of project  \n 4. Create the database using any name you like.  \n 5. Edit Database Settings in `config/settings.php` in db section  \n```  \n 'db' =\u003e [         \n         'driver' =\u003e 'mysql',    \n         'host' =\u003e '127.0.0.1',    \n         'port' =\u003e '3306',    \n         'database' =\u003e \"organization\",    \n         'username' =\u003e 'your_username',    \n         'password' =\u003e \"your_password\",    \n         'charset' =\u003e 'utf8',    \n         'collation' =\u003e 'utf8_unicode_ci',    \n         'prefix' =\u003e '',    \n      ],    \n ```    \n5. Load the dump in your database `database\\dump.sql`  \n 6. Set up virtual host on Apache or Nginx, make sure what DocumentRoot relate on `public` directory   \n 7. Alternatively you can just run commnad `composer start` to start project using your local machine PHP: Built-in web server for this url : http://localhost:8080   \n   \n  \n## How To Use  \nYou can use any tool for making HTTP queries: postman, curl, etc.  \n  \n### Using Postman Collection   \n 1. To test project using the postman collection you can import Collection JSON file in root of project `OrganizationRest.postman_collection.json` in you Postman , you can download it here https://www.getpostman.com/ or just use the web-interface.  \n 2. There are 3 [Three] Requests Here :  \n          - **Create Organization** [ Create the Sample item provided in test ]  \n  - **Get Organization** [Query for sample search parameter : Black Banana]  \n  - **Get Organization With Pagination** [Query for sample serach parameter : Black Banana with `limit` query parameter set  \n  \n### First End Point 1) For testing first end-point [ Organizations and Relations creation ] just send POST request to /organizations url with this body and `JSON (application/json)` body type  \n```  \n{  \n \"org_name\": \"Paradise Island\", \"daughters\": [{ \"org_name\": \"Banana tree\", \"daughters\": [{ \"org_name\": \"Yellow Banana\" }, { \"org_name\": \"Brown Banana\" }, { \"org_name\": \"Black Banana\" }] }, { \"org_name\": \"Big banana tree\", \"daughters\": [{ \"org_name\": \"Yellow Banana\" }, { \"org_name\": \"Brown Banana\" }, { \"org_name\": \"Green Banana\" }, { \"org_name\": \"Black Banana\", \"daughters\": [{ \"org_name\": \"Phoneutria Spider\" }] }] }]}  \n```  \n2) For testing second end-point (getting relation of Organization) just send GET request to /organizations/{organizationName} url (organizationName should be urlencoded if you are not using browser to test it )  \nYou can use pagination parameters: just use limit and page parameters. For example: `/organizations/Black Banana?limit=3\u0026page=1`. Default values for `limit` is `100` and for the `page` is `1`.\n\n## Using the Unit Test\nto do php unit tests just use `composer test` command in the root directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubzerobo%2Fsubzerobo-pipedrive_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubzerobo%2Fsubzerobo-pipedrive_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubzerobo%2Fsubzerobo-pipedrive_test/lists"}