{"id":20269394,"url":"https://github.com/thammami01/wordpress-db-custom-backend","last_synced_at":"2026-04-05T23:02:14.238Z","repository":{"id":196059713,"uuid":"401928795","full_name":"THammami01/wordpress-db-custom-backend","owner":"THammami01","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-03T17:58:31.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T23:20:00.367Z","etag":null,"topics":["express","fetch","mysql","wordpress"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/THammami01.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}},"created_at":"2021-09-01T04:20:23.000Z","updated_at":"2022-07-31T23:43:42.000Z","dependencies_parsed_at":"2023-09-21T06:28:52.715Z","dependency_job_id":null,"html_url":"https://github.com/THammami01/wordpress-db-custom-backend","commit_stats":null,"previous_names":["thammami01/wordpress-db-custom-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/THammami01/wordpress-db-custom-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Fwordpress-db-custom-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Fwordpress-db-custom-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Fwordpress-db-custom-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Fwordpress-db-custom-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/THammami01","download_url":"https://codeload.github.com/THammami01/wordpress-db-custom-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THammami01%2Fwordpress-db-custom-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31452901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["express","fetch","mysql","wordpress"],"created_at":"2024-11-14T12:24:55.614Z","updated_at":"2026-04-05T23:02:14.077Z","avatar_url":"https://github.com/THammami01.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Notes\n\n## Base URL\n\n[http://localhost:4000/api](http://localhost:4000/api)\n\n## Routes\n\n- /products\u003cbr /\u003e\n  Returns a list of all saved products\u003cbr /\u003e\n  Status Codes: 200, 500\n- /products/:productId\u003cbr /\u003e\n  Returns a specific product\u003cbr /\u003e\n  Status Codes: 200, 404, 500\n- /users/:userId\u003cbr /\u003e\n  Returns all user's reviews\u003cbr /\u003e\n  Status Codes: 200, 500\n\n## Status Codes Reference\n\n200: OK\u003cbr /\u003e\n404: Not Found\u003cbr /\u003e\n500: Internal Server Error\n\n## /api/products Results Example\n\n```json\n[\n  { ... },\n  { ... }\n]\n```\n\n## /api/products/5338 Results Example\n\n```json\n{\n  \"ID\": 5338,\n  \"post_author\": 1,\n  \"date\": \"2021-09-01T12:46:47.000Z\",\n  \"long_description\": \"The Nike \u003cstrong\u003eDunk\u003c/strong\u003e Low Retro White Black released in January of 2021 and retailed for $100.\",\n  \"title\": \"Jordan 12 Retro\",\n  \"short_description\": \"...\",\n  \"review_status\": \"open\",\n  \"slug\": \"jordan-12-retro\",\n  \"main_image\": \"http://localhost/wp-final/wp-content/uploads/2021/09/img01.webp\",\n  \"gallery\": [\n    \"http://localhost/wp-final/wp-content/uploads/2021/09/img24.jpg\",\n    \"http://localhost/wp-final/wp-content/uploads/2021/09/img14.jpg\",\n    \"http://localhost/wp-final/wp-content/uploads/2021/09/img07.jpg\"\n  ],\n  \"reviews\": [\n    {\n      \"user_id\": 1,\n      \"name\": \"admin\",\n      \"email\": \"bixono9493@mi166.com\",\n      \"date\": \"2021-09-01T13:17:16.000Z\",\n      \"content\": \"sabat ..\",\n      \"vote\": \"4\"\n    },\n    {\n      \"user_id\": 1,\n      \"name\": \"admin\",\n      \"email\": \"bixono9493@mi166.com\",\n      \"date\": \"2021-09-02T05:58:26.000Z\",\n      \"content\": \"my review...\",\n      \"vote\": \"3\"\n    }\n  ],\n  \"variations\": [\n    {\n      \"variation_id\": 5346,\n      \"color\": \"black\",\n      \"size\": \"40\",\n      \"SKU\": \"00000001\",\n      \"meta_data\": {\n        \"_backorders\": \"no\",\n        \"_download_expiry\": \"-1\",\n        \"_download_limit\": \"-1\",\n        \"_downloadable\": \"no\",\n        \"_manage_stock\": \"yes\",\n        \"_product_version\": \"5.6.0\",\n        \"_regular_price\": \"270\",\n        \"_sku\": \"00000001\",\n        \"_sold_individually\": \"no\",\n        \"_stock\": \"3\",\n        \"_stock_status\": \"instock\",\n        \"_tax_class\": \"parent\",\n        \"_tax_status\": \"taxable\",\n        \"_thumbnail_id\": \"0\",\n        \"_variation_description\": \"\",\n        \"_virtual\": \"no\",\n        \"_wc_average_rating\": \"0\",\n        \"_wc_review_count\": \"0\",\n        \"attribute_pa_color\": \"black\",\n        \"attribute_pa_size\": \"40\",\n        \"total_sales\": \"0\"\n      }\n    },\n    {\n      \"variation_id\": 5347,\n      \"color\": \"black\",\n      \"size\": \"41\",\n      \"SKU\": \"00000002\",\n      \"meta_data\": {\n        \"_backorders\": \"no\",\n        \"_download_expiry\": \"-1\",\n        \"_download_limit\": \"-1\",\n        \"_downloadable\": \"no\",\n        \"_manage_stock\": \"yes\",\n        \"_product_version\": \"5.6.0\",\n        \"_regular_price\": \"250\",\n        \"_sale_price\": \"200\",\n        \"_sale_price_dates_from\": \"1631232000\",\n        \"_sale_price_dates_to\": \"1635724799\",\n        \"_sku\": \"00000002\",\n        \"_sold_individually\": \"no\",\n        \"_stock\": \"10\",\n        \"_stock_status\": \"instock\",\n        \"_tax_class\": \"parent\",\n        \"_tax_status\": \"taxable\",\n        \"_thumbnail_id\": \"0\",\n        \"_variation_description\": \"\",\n        \"_virtual\": \"no\",\n        \"_wc_average_rating\": \"0\",\n        \"_wc_review_count\": \"0\",\n        \"attribute_pa_color\": \"black\",\n        \"attribute_pa_size\": \"41\",\n        \"total_sales\": \"0\"\n      }\n    },\n    {\n      \"variation_id\": 5352,\n      \"color\": \"green\",\n      \"size\": \"40\",\n      \"SKU\": \"00000003\",\n      \"meta_data\": {\n        \"_backorders\": \"no\",\n        \"_download_expiry\": \"-1\",\n        \"_download_limit\": \"-1\",\n        \"_downloadable\": \"no\",\n        \"_manage_stock\": \"yes\",\n        \"_product_version\": \"5.6.0\",\n        \"_regular_price\": \"260\",\n        \"_sku\": \"00000003\",\n        \"_sold_individually\": \"no\",\n        \"_stock\": \"0\",\n        \"_stock_status\": \"outofstock\",\n        \"_tax_class\": \"parent\",\n        \"_tax_status\": \"taxable\",\n        \"_thumbnail_id\": \"0\",\n        \"_variation_description\": \"\",\n        \"_virtual\": \"no\",\n        \"_wc_average_rating\": \"0\",\n        \"_wc_review_count\": \"0\",\n        \"attribute_pa_color\": \"green\",\n        \"attribute_pa_size\": \"40\",\n        \"total_sales\": \"0\"\n      }\n    }\n  ],\n  \"type\": \"variable\",\n  \"colors\": [\"green\", \"black\"],\n  \"sizes\": [\"40\", \"41\"],\n  \"categories\": [\"Shoes\", \"Air Jordan\"],\n  \"tags\": [\"fashion\", \"men\"],\n  \"meta_data\": {\n    \"_backorders\": \"no\",\n    \"_crosssell_ids\": [2602],\n    \"_download_expiry\": \"-1\",\n    \"_download_limit\": \"-1\",\n    \"_downloadable\": \"no\",\n    \"_edit_last\": \"1\",\n    \"_edit_lock\": \"1630684060:1\",\n    \"_manage_stock\": \"yes\",\n    \"_product_attributes\": \"a:2:{s:8:\\\"pa_color\\\";a:6:{s:4:\\\"name\\\";s:8:\\\"pa_color\\\";s:5:\\\"value\\\";s:0:\\\"\\\";s:8:\\\"position\\\";i:0;s:10:\\\"is_visible\\\";i:1;s:12:\\\"is_variation\\\";i:1;s:11:\\\"is_taxonomy\\\";i:1;}s:7:\\\"pa_size\\\";a:6:{s:4:\\\"name\\\";s:7:\\\"pa_size\\\";s:5:\\\"value\\\";s:0:\\\"\\\";s:8:\\\"position\\\";i:2;s:10:\\\"is_visible\\\";i:1;s:12:\\\"is_variation\\\";i:1;s:11:\\\"is_taxonomy\\\";i:1;}}\",\n    \"_product_image_gallery\": \"5342,5341,5340\",\n    \"_product_version\": \"5.6.0\",\n    \"_sku\": \"00000000\",\n    \"_sold_individually\": \"yes\",\n    \"_stock\": \"1\",\n    \"_stock_status\": \"instock\",\n    \"_tax_class\": \"\",\n    \"_tax_status\": \"taxable\",\n    \"_thumbnail_id\": \"5339\",\n    \"_upsell_ids\": [2602],\n    \"_virtual\": \"no\",\n    \"_wc_average_rating\": \"3.50\",\n    \"_wc_rating_count\": \"a:2:{i:3;i:1;i:4;i:1;}\",\n    \"_wc_review_count\": \"2\",\n    \"_wp_page_template\": \"default\",\n    \"rs_page_bg_color\": \"\",\n    \"total_sales\": \"0\"\n  }\n}\n```\n\n## /api/users/1 Results Example\n\n```json\n[\n  {\n    \"name\": \"admin\",\n    \"email\": \"bixono9493@mi166.com\",\n    \"date\": \"2021-09-01T13:17:16.000Z\",\n    \"content\": \"sabat ..\",\n    \"vote\": \"4\"\n  },\n  {\n    \"name\": \"admin\",\n    \"email\": \"bixono9493@mi166.com\",\n    \"date\": \"2021-09-02T05:58:26.000Z\",\n    \"content\": \"my review...\",\n    \"vote\": \"3\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthammami01%2Fwordpress-db-custom-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthammami01%2Fwordpress-db-custom-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthammami01%2Fwordpress-db-custom-backend/lists"}