{"id":20463359,"url":"https://github.com/fflch/switches","last_synced_at":"2025-03-05T11:51:16.060Z","repository":{"id":46892172,"uuid":"387284327","full_name":"fflch/switches","owner":"fflch","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T00:00:43.000Z","size":284,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T00:56:19.813Z","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/fflch.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}},"created_at":"2021-07-18T22:55:44.000Z","updated_at":"2022-12-08T00:00:49.000Z","dependencies_parsed_at":"2022-09-23T08:01:25.033Z","dependency_job_id":null,"html_url":"https://github.com/fflch/switches","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/fflch%2Fswitches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflch%2Fswitches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflch%2Fswitches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflch%2Fswitches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fflch","download_url":"https://codeload.github.com/fflch/switches/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023193,"owners_count":20059297,"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":[],"created_at":"2024-11-15T13:10:45.071Z","updated_at":"2025-03-05T11:51:16.039Z","avatar_url":"https://github.com/fflch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Exemplo de requisição post com shell:\n\n    curl --include --header \"Authorization: 123\" \\\n    -X POST -H \"Content-Type: application/json\" --data \\\n    '{\"hostname\": \"008.054517\",\"ip\": \"200.0.1.4\",\"poe_type\": \"no\",\"model\": \"hp_comware\",\"local\": \"fcs\",\"position\": \"RACK-A\"}' \\\n    http://127.0.0.1:8000/api/equipamentos\n\nExemplo de requisição post com python:\n\n    import requests\n    import json\n\n    url = 'http://127.0.0.1:8000/api/equipamentos'\n    data = {\"hostname\": \"008.054517\",\n            \"ip\": \"200.0.1.4\",\n            \"poe_type\": \"no\",\n            \"model\": \"hp_comware\",\n            \"local\": \"fcs\",\n            \"position\": \"RACK-A\"}\n    headers = {'Authorization': '123'}\n\n    r = requests.post(url, data=data, headers=headers)\n    print(r.content)\n\nEstrutura:\n\n    equipamento -\u003e porta -\u003e snapshot -\u003e macs\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffflch%2Fswitches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffflch%2Fswitches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffflch%2Fswitches/lists"}