{"id":15026378,"url":"https://github.com/quentg/httpstatus","last_synced_at":"2025-06-15T18:08:50.611Z","repository":{"id":96926535,"uuid":"169740364","full_name":"QuentG/Httpstatus","owner":"QuentG","description":"A site monitoring site ","archived":false,"fork":false,"pushed_at":"2019-02-24T21:00:24.000Z","size":529,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-12T12:40:59.718Z","etag":null,"topics":["api","descartes","httpstatus","php-framework","php73"],"latest_commit_sha":null,"homepage":"","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/QuentG.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":"2019-02-08T13:38:34.000Z","updated_at":"2021-03-16T08:33:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c77df07-4206-4f9c-9556-b7bcf8f60140","html_url":"https://github.com/QuentG/Httpstatus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentG%2FHttpstatus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentG%2FHttpstatus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentG%2FHttpstatus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentG%2FHttpstatus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuentG","download_url":"https://codeload.github.com/QuentG/Httpstatus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225258941,"owners_count":17445834,"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","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","descartes","httpstatus","php-framework","php73"],"created_at":"2024-09-24T20:04:23.150Z","updated_at":"2024-11-18T22:09:02.322Z","avatar_url":"https://github.com/QuentG.png","language":"PHP","readme":"# Httpstatus\n\n## Presentation \n\nThis web application will check the status of any site with a refresh of the status every two minutes + a complete history, and if a site is K.O three times in a row then the admin will receive an email on his mailbox and no sending message if a message has already been sent to the site less than 2 hours ago #NoSpam.\n\nIt has an admin space (with connection in advance) that will allow to add sites / edit (url) and delete them.\n\nThis web application also has an API.\n\n## Description \n\n### Update status\n\nBased on HTTP return codes. With 4 status:\n\n- Inaccessible -\u003e 4xx\n\n- Server error -\u003e 5xx\n\n- Accessible -\u003e 2xx\n\n- Unable to join the server -\u003e 999\n\n## API\n\nThe site has an API that allows you to:\n\n- List the sites\n\n- Add a site\n\n- Delete a site\n\n- Consult the current status of a site\n\n- View the history of a site\n\n### Different routes\n\n- Home : /api/\n\n- List : '/api/list\n\n- Add : /api/add\n\n- Status : /api/status/{id}\n\n- History : /api/history/{id}\n\n- Delete : /api/delete/{id}\n\n***\n\n### Example of different requests made to the API\n\n- /api/\n\n```\n{\n    'version': 1,\n    'list': 'http://example.fr/httpstatus/api/list/'\n}\n```\n\n***\n\n- /api/list\n\n```\n{\n    'version': 1,\n    'websites': [\n        {\n            'id': 973,\n            'url': 'http://toto.com',\n            'delete': 'http://example.fr/httpstatus/api/delete/973',\n            'status': 'http://example.fr/httpstatus/api/status/973',\n            'history': 'http://example.fr/httpstatus/api/history/973',\n        },\n        ...\n    ]\n}\n```\n\n***\n\n- /api/add\n\n```\n{\n    'success': true,\n    'id': 7269,\n}\n```\n\n***\n\n- /api/status/973\n\n```\n{\n    'id': 973,\n    'url': 'http://toto.com',\n    'status': {\n        'code': 200,\n        'at': '2019-02-01 10:00:12'\n    }\n}\n```\n\n***\n\n- /api/history/973\n\n```\n{\n    'id': 973,\n    'url': 'http://toto.com',\n    'status': [\n        {\n            'code': 200,\n            'at': '2019-01-10 10:00:11'\n        },\n        {\n            'code': 500,\n            'at': '2019-01-10 09:58:11'\n        },\n        {\n            'code': 200,\n            'at': '2019-01-10 09:56:11'\n        },\n    ]\n}\n```\n\n***\n\n- /api/delete/973\n\n```\n{\n    'success': true,\n    'id': 973,\n}\n```\n\n## Authors\n\n**Developed by** - [Lucas Consejo](https://github.com/lucasconsejo) \u0026\u0026 [Quentin gans](https://github.com/QuentG).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentg%2Fhttpstatus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquentg%2Fhttpstatus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentg%2Fhttpstatus/lists"}