{"id":21520436,"url":"https://github.com/lalathealter/kairastat","last_synced_at":"2026-05-21T04:02:56.388Z","repository":{"id":162217599,"uuid":"636723789","full_name":"lalathealter/kairastat","owner":"lalathealter","description":"A service API with integrated SQL for the VKontakte internship exam (Backend Dev position)","archived":false,"fork":false,"pushed_at":"2023-05-10T05:50:54.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T04:43:31.870Z","etag":null,"topics":["api","go","golang","postgresql","sql"],"latest_commit_sha":null,"homepage":"https://kairastat-daniilmusinsc23.b4a.run/api","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lalathealter.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":"2023-05-05T13:50:55.000Z","updated_at":"2023-05-10T06:09:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"d223cd3e-7d21-48de-90de-3f870664c3a7","html_url":"https://github.com/lalathealter/kairastat","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/lalathealter%2Fkairastat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalathealter%2Fkairastat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalathealter%2Fkairastat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalathealter%2Fkairastat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lalathealter","download_url":"https://codeload.github.com/lalathealter/kairastat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075637,"owners_count":20393979,"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","go","golang","postgresql","sql"],"created_at":"2024-11-24T01:01:37.574Z","updated_at":"2026-05-21T04:02:51.341Z","avatar_url":"https://github.com/lalathealter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About the API\n\nPlease note that in order to access an API you should use a path of `./api` and not a root one; \n\n## POST ./api\n\nCreates an event of the given name with the client's associated IP address; If an event with that name for that IP address already exists, increases an event counter; To pass arguments use URL queries like this:\n\n`POST ./api?event={event_name_value}\u0026authorized`\n\n1. the `event` parameter:\n    - is required (must be passed) \n    - represents a user event's name\n    - accepts strings no longer than 128 characters\n2. the `authorized` parameter:\n    - is optional\n    - can hold any value; If the parameter is present, it's considered to be a boolean true equivalent;\n    - updates a user's status even when absent (in that case, sets the authorization status to false)\n    - updates a user authorization status so their events could be filtered by their current status \n\n## GET ./api\n\nRetrieves the data about events based on provided filters and aggregators; To provide those, use URL queries like this:\n\n`GET ./api?{filter-option}={filter_argument}\u0026{aggregator-option}={aggregator_argument}`\n\nPlease note that filter and aggregator options are exclusive; If you provide several filter (or aggregator) options at once, a service will respond with only one of them (depending on what would be checked first in the corresponding handler function)\n\nIf no aggregator is passed, API returns all available events;\n\n- Available filters: \n    1. `starts-with`:\n        - filters events based on a provided name start\n        - utilizes SQL's LIKE statement, so you would get an expression of `{your_argument}%`\n    2. `later-than`:\n        - filters events based on the time they were originally created\n        - accepts only valid RFC3339 time strings like `2006-01-02T15:04:05+07:00` (the plus sign indicates a start of a timezone and can be replaced with a minus)\n\n- Available aggregators:\n    1. `event`:\n        - aggregates exact name matches\n    2. `user-ip`:\n        - aggregates events by a provided IP address\n        - must be a string representation of a **IPv4 convertable address**\n    3. `is-authorized`:\n        - aggregates events based on it's author's current authorization status\n        - parameters of \"true\", \"t\", \"1\", \"yes\" and \"y\" are equivalent to a boolean true value (the character case doesn't matter)\n        - anything else is considered a boolean false value \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalathealter%2Fkairastat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flalathealter%2Fkairastat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalathealter%2Fkairastat/lists"}