{"id":13563164,"url":"https://github.com/eminetto/api-o11y","last_synced_at":"2025-10-06T02:22:44.918Z","repository":{"id":150978922,"uuid":"623633608","full_name":"eminetto/api-o11y","owner":"eminetto","description":"Repository used in a talk about APIs and Observability","archived":false,"fork":false,"pushed_at":"2023-08-22T14:13:13.000Z","size":13468,"stargazers_count":71,"open_issues_count":0,"forks_count":24,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-11T19:22:33.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/eminetto.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}},"created_at":"2023-04-04T19:06:44.000Z","updated_at":"2024-11-28T00:53:10.000Z","dependencies_parsed_at":"2023-11-04T06:30:40.320Z","dependency_job_id":null,"html_url":"https://github.com/eminetto/api-o11y","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/eminetto/api-o11y","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminetto%2Fapi-o11y","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminetto%2Fapi-o11y/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminetto%2Fapi-o11y/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminetto%2Fapi-o11y/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eminetto","download_url":"https://codeload.github.com/eminetto/api-o11y/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eminetto%2Fapi-o11y/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278548017,"owners_count":26004818,"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-06T02:00:05.630Z","response_time":65,"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-08-01T13:01:15.814Z","updated_at":"2025-10-06T02:22:44.897Z","avatar_url":"https://github.com/eminetto.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# API Observability\n\n### Building\n\n```\ndocker compose up -d --build\n```\n\n## Using the services\n\n### Auth\n\n```\ncurl -X \"POST\" \"http://localhost:8081/v1/auth\" \\\n     -H 'Accept: application/json' \\\n     -H 'Content-Type: application/json' \\\n     -d $'{\n  \"email\": \"eminetto@email.com\",\n  \"password\": \"12345\"\n}'\n\n```\n\nThe result should be a token, like:\n\n```\n{\n  \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImVtaW5ldHRvQGVtYWlsLmNvbSIsImV4cCI6MTY4MTM0ODQ3MSwiaWF0IjoxNjgxMzQ0ODQxLCJuYmYiOjE2ODEzNDQ4NDF9.GdUiLYqrXeUZNIgHDhGDhGIV1NpN941UiFBqgvSoS-4\"\n}\n```\n\n### Feedback\n\nYou need to use the token generated by the ```Auth``` service:\n\n```\ncurl -X \"POST\" \"http://localhost:8082/v1/feedback\" \\\n     -H 'Accept: application/json' \\\n     -H 'Content-Type: application/json' \\\n\t -H 'Authorization:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImVtaW5ldHRvQGVtYWlsLmNvbSIsImV4cCI6MTY4MTM0ODQ3MSwiaWF0IjoxNjgxMzQ0ODQxLCJuYmYiOjE2ODEzNDQ4NDF9.GdUiLYqrXeUZNIgHDhGDhGIV1NpN941UiFBqgvSoS-4' \\\n     -d $'{\n  \"title\": \"Feedback test\",\n  \"body\": \"Feedback body\"\n}'\n```\n\n### Vote\n\nYou need to use the token generated by the ```Auth``` service:\n\n```\ncurl -X \"POST\" \"http://localhost:8083/v1/vote\" \\\n     -H 'Accept: application/json' \\\n     -H 'Content-Type: application/json' \\\n\t -H 'Authorization:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImVtaW5ldHRvQGVtYWlsLmNvbSIsImV4cCI6MTY4MTM0ODQ3MSwiaWF0IjoxNjgxMzQ0ODQxLCJuYmYiOjE2ODEzNDQ4NDF9.GdUiLYqrXeUZNIgHDhGDhGIV1NpN941UiFBqgvSoS-4' \\\n     -d $'{\n  \"talk_name\": \"Go e Microserviços\",\n  \"score\": \"10\"\n}'\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feminetto%2Fapi-o11y","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feminetto%2Fapi-o11y","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feminetto%2Fapi-o11y/lists"}