{"id":16462591,"url":"https://github.com/sametsahindogan/request-logger","last_synced_at":"2026-05-08T03:11:47.406Z","repository":{"id":111577047,"uuid":"303722700","full_name":"sametsahindogan/request-logger","owner":"sametsahindogan","description":"Multi-tenant HTTP Request Log API for specific domains.","archived":false,"fork":false,"pushed_at":"2020-11-08T14:56:41.000Z","size":31,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T08:23:37.898Z","etag":null,"topics":["gin","gin-framework","gin-gonic","gin-middleware","go","golang","mongodb"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sametsahindogan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-10-13T14:04:17.000Z","updated_at":"2023-11-09T00:29:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"a82f95b9-1856-432a-b5c0-34324ba95c03","html_url":"https://github.com/sametsahindogan/request-logger","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/sametsahindogan%2Frequest-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sametsahindogan%2Frequest-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sametsahindogan%2Frequest-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sametsahindogan%2Frequest-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sametsahindogan","download_url":"https://codeload.github.com/sametsahindogan/request-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240995363,"owners_count":19890722,"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":["gin","gin-framework","gin-gonic","gin-middleware","go","golang","mongodb"],"created_at":"2024-10-11T11:11:44.462Z","updated_at":"2026-05-08T03:11:42.382Z","avatar_url":"https://github.com/sametsahindogan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Request Logger API\n\nThis RESTful API, allows you to store \u0026 list a received HTTP requests to your application.\n\n## Installation:\n\nYou need to install [MongoDB](https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-18-04) and [GoLang](https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-18-04). \nAfter completing the necessary setups, copy `.env.example` to `.env` file and change these environment variable.\n\nThen run;\n```bash\ngo run main.go\n```\n\n## Authentication:\n\nHTTP basic authentication with the credentials in your `.env` file.\n\n## Create Request Log:\n\nRequest URI: **\"/\"** \nRequest Type: **POST**\n\n| Param | Type | Example|\n| - | - | - |\n| user_id | String (Required) | \"424\" |\n| ip_address | String (Required) | \"127.0.0.1\" |\n| domain | String (Required) | \"https://example.com\" |\n| uri | String (Required) | \"/products\" |\n\n## List All Requests:\n\nRequest URI: **\"/list\"**\nRequest Type: **GET**\n\n| Param | Type | Example |\n| - | - | - |\n| domain | String (Required) | \"http://example.com\" |\n| user | String | \"424\" |\n| uri | String | \"/products\" |\n| ip | String | \"127.0.0.1\" |\n| date | String | \"2020-10-13\" |\n| per-page | String | \"10\" |\n| page | String | \"1\" |\n| sort | String | \"ASC\" |\n\n\n### Example:\n\n```http request\nhttp://127.0.0.1:8080/list?domain=https://example.com\u0026user=424\u0026ip=127.0.0.1\u0026date=2020-10-19\u0026per-page=5\u0026page=1\u0026sort=ASC\n```\n\n**Output**\n```json\n    \"success\": true,\n    \"data\": [\n        {\n            \"Id\": \"5f8d45a7546e959cecb3bbb8\",\n            \"UserId\": \"424\",\n            \"IpAddress\": \"127.0.0.1\",\n            \"Uri\": \"/products\",\n            \"Domain\": \"https://example.com\",\n            \"CreatedAt\": \"2020-10-19T07:52:07.42Z\"\n        },\n        {\n            \"Id\": \"5f8d45a9546e959cecb3bbb9\",\n            \"UserId\": \"424\",\n            \"IpAddress\": \"127.0.0.1\",\n            \"Uri\": \"/products\",\n            \"Domain\": \"https://example.com\",\n            \"CreatedAt\": \"2020-10-19T07:52:09.075Z\"\n        },\n        {\n            \"Id\": \"5f8d45a9546e959cecb3bbba\",\n            \"UserId\": \"424\",\n            \"IpAddress\": \"127.0.0.1\",\n            \"Uri\": \"/products\",\n            \"Domain\": \"https://example.com\",\n            \"CreatedAt\": \"2020-10-19T07:52:09.513Z\"\n        },\n        {\n            \"Id\": \"5f8d45aa546e959cecb3bbbb\",\n            \"UserId\": \"424\",\n            \"IpAddress\": \"127.0.0.1\",\n            \"Uri\": \"/products\",\n            \"Domain\": \"https://example.com\",\n            \"CreatedAt\": \"2020-10-19T07:52:10.006Z\"\n        },\n        {\n            \"Id\": \"5f8d45ac546e959cecb3bbbc\",\n            \"UserId\": \"424\",\n            \"IpAddress\": \"127.0.0.1\",\n            \"Uri\": \"/products\",\n            \"Domain\": \"https://example.com\",\n            \"CreatedAt\": \"2020-10-19T07:52:12.601Z\"\n        }\n    ],\n    \"extra\": {\n        \"currentRows\": 5,\n        \"hasNextPage\": true,\n        \"page\": 1,\n        \"perPage\": 5,\n        \"totalPage\": 8,\n        \"totalRows\": 39\n    }\n```\n\n\n## Postman Export\n\nYou can use this [export](https://raw.githubusercontent.com/sametsahindogan/request-logger/master/docs/request_logger.postman_collection.json).\n\n## License\nMIT © [Samet Sahindogan](https://github.com/sametsahindogan/request-logger/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsametsahindogan%2Frequest-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsametsahindogan%2Frequest-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsametsahindogan%2Frequest-logger/lists"}