{"id":15145457,"url":"https://github.com/prestashop/ps_apiresources","last_synced_at":"2026-05-11T11:02:58.762Z","repository":{"id":198253146,"uuid":"700386079","full_name":"PrestaShop/ps_apiresources","owner":"PrestaShop","description":"Includes the resources allowing using the API for the PrestaShop domain, all endpoints are based on CQRS commands/queries from the Core and we APIPlatform framework is used as a base.","archived":false,"fork":false,"pushed_at":"2026-05-07T09:39:32.000Z","size":941,"stargazers_count":13,"open_issues_count":25,"forks_count":41,"subscribers_count":25,"default_branch":"dev","last_synced_at":"2026-05-07T11:32:42.864Z","etag":null,"topics":["api","hacktoberfest","prestashop-module"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"afl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PrestaShop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2023-10-04T13:55:20.000Z","updated_at":"2026-05-07T09:39:37.000Z","dependencies_parsed_at":"2023-10-05T02:29:45.718Z","dependency_job_id":"5f4ce754-f177-4d70-b8ff-a0f0651e2577","html_url":"https://github.com/PrestaShop/ps_apiresources","commit_stats":{"total_commits":72,"total_committers":8,"mean_commits":9.0,"dds":0.3472222222222222,"last_synced_commit":"284354c65866a4a22fa15ec0b653f5622742cdac"},"previous_names":["prestashop/ps_apiresources"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/PrestaShop/ps_apiresources","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fps_apiresources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fps_apiresources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fps_apiresources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fps_apiresources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PrestaShop","download_url":"https://codeload.github.com/PrestaShop/ps_apiresources/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrestaShop%2Fps_apiresources/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32891966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":["api","hacktoberfest","prestashop-module"],"created_at":"2024-09-26T11:25:38.855Z","updated_at":"2026-05-11T11:02:58.757Z","avatar_url":"https://github.com/PrestaShop.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PrestaShop API Resources\n\n[![Coverage Status](https://coveralls.io/repos/github/PrestaShop/ps_apiresources/badge.svg)](https://coveralls.io/github/PrestaShop/ps_apiresources)\n\n## About\n\nIncludes the resources allowing using the API for the PrestaShop domain, all endpoints are based on CQRS commands/queries from the Core and we [API Platform](https://api-platform.com/) framework is used as a base.\n\nThis module contains no code only some resource files that are automatically scanned and integrated by the Core, these resources are in [this folder](src/ApiPlatform/Resources).\n\n## Reporting issues\n\nYou can report issues with this module in the main PrestaShop repository. [Click here to report an issue][report-issue].\n\n## Under development\n\nPlease be aware that this module is still under development, which is why its version is only `0.*`. We haven't released a major version `1.0` yet because we anticipate some breaking changes may happen while we add all the missing endpoints.\n\nWe aim to maintain backward compatibility as much as possible and never introduce breaking changes, but we also want this API contract to be a fixed standard once it's finalized, so we prefer to polish and refine it before a major version is released.\n\nAfter the `1.0` version is released it won't include other breaking changes, any breaking change will require a new major version (`2.0`) and will follow semver convention.\n\n## Requirements\n\nRequired only for development:\n\n- composer\n\n## Installation\n\nInstall all dependencies.\n```bash\ncomposer install\n```\n\n## Run tests locally\n\n### Initialize tmp shop environment\n\nFirst, initialize the test environment with this command that will install a PrestaShop shop in a temporary folder so that the integration tests can run:\n\n```bash\ncomposer create-test-db\n```\n\n### Customize tmp shop environment\n\nYou can define custom values when setting up the tmp shop:\n\n```bash\ncomposer clear-test-cache\ncomposer setup-local-tests -- [arguments]\n  arguments:\n    --force-clone Force cloning the repository even if a cloned repository is detected (when no repository is detected, the clone is automatic)\n    --build-assets Force building assets even if they are already built (when no assets are detected, the build is automatic)\n    --build-db Force building DB by installing the default shop data (when no DB is detected, the DB shop is installed automatically)\n    --update-local-parameters Force copying parameters from the `test/local-parameters` folder (when no parameter file is detectec they are automatically copied)\n    --force Force all the previous arguments\n    --core-branch Use a specific branch, you can use a branch from the original repository (ex: `develop`, `9.1.x`, ...) or from a fork (ex: `myfork:my-dev-branch`) (By default branch develop is used)\n```\n\nExample:\n```bash\n# To test with 9.1.x branch\ncomposer setup-local-tests -- --force --core-branch=9.1.x\n\n# To test with a branch from your fork (in this example, fork: jolelievre, branch: product-api)\ncomposer setup-local-tests -- --force --core-branch=jolelievre:product-api\n```\n\n### Run tests\n\nThen you can run the tests with this command:\n\n```bash\ncomposer run-module-tests\n```\n\n## Run PHPStan locally\n\nYou can run PHPStan locally using the composer script, you will need to specify two variables though:\n- `_PS_ROOT_DIR_`: path to a local PrestaShop root folder\n- `_PS_BRANCH_`: which branch you are testing, this impacts the PHPStan config file used which contains specific rules and exceptions, accepted values are `develop|9.1.x`\n\n```bash\n# To test with the develop branch\n_PS_ROOT_DIR_=/path/to/prestashop-develop _PS_BRANCH_=develop composer phpstan\n\n# To test with the 9.1.x branch\n_PS_ROOT_DIR_=/path/to/prestashop-91x _PS_BRANCH_=9.1.x composer phpstan\n```\n\nEach config uses a différent cache folders stored in `var/phpstan-tmp` but you can easily pollute it if:\n- you run the command multiple times with mixed variables (`_PS_ROOT_DIR_` and `_PS_BRANCH_` don't match)\n- you change your branch in `_PS_ROOT_DIR_` but the cache was already generated with the previous branch\n\nYou can remove the `var/phpstan-tmp` cache to reset the cache.\n\nYou can also use the composer script to update the baseline to include exceptions for specific versions:\n\n```bash\n# To test with the develop branch (this should updated phpstan-9.1.x.neon only)\n_PS_ROOT_DIR_=/path/to/prestashop-91x _PS_BRANCH_=9.1.x composer phpstan-baseline\n```\n\nMake sure you use the correct two variables and your cache is correct ro you will add the wrong exceptions for the wrong branch.\nThis composer script will generate a dedicated baseline file, but the rules should be included in the existing phpstan config for the branch.\n\n## Contributing\n\nThe PrestaShop Admin API provides RESTful endpoints for managing your store programmatically. Everyone is welcome to contribute by adding new API endpoints!\n\n**Please read our contributing guide before starting:**\n- **[Create new API endpoints](https://devdocs.prestashop-project.org/9/admin-api/contribute-to-core-api/)** - Complete step-by-step guide\n- **[Admin API Documentation](https://devdocs.prestashop-project.org/9/admin-api/)** - Full API reference\n\nNeed help or believe core improvements are needed? Reach out to the team on [Slack][slack], and `#cfc-adminapi` channel - we're here to help!\n\nAlso, follow our general [contribution guidelines][contribution-guidelines].\n\n## License\n\nThis module is released under the [Academic Free License 3.0][AFL-3.0]\n\n[report-issue]: https://github.com/PrestaShop/PrestaShop/issues/new/choose\n[prestashop]: https://www.prestashop-project.org/\n[contribution-guidelines]: https://devdocs.prestashop-project.org/9/contribute/contribution-guidelines/project-modules/\n[AFL-3.0]: https://opensource.org/licenses/AFL-3.0\n[slack]: https://prestashop-project.org/slack\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprestashop%2Fps_apiresources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprestashop%2Fps_apiresources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprestashop%2Fps_apiresources/lists"}