{"id":17841253,"url":"https://github.com/shybovycha/sport-events","last_synced_at":"2026-01-12T09:42:30.264Z","repository":{"id":24271802,"uuid":"27666104","full_name":"shybovycha/sport-events","owner":"shybovycha","description":null,"archived":false,"fork":false,"pushed_at":"2015-12-13T22:15:08.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T14:09:08.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/shybovycha.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":"2014-12-07T10:08:37.000Z","updated_at":"2015-07-20T06:12:31.000Z","dependencies_parsed_at":"2022-06-30T00:02:54.461Z","dependency_job_id":null,"html_url":"https://github.com/shybovycha/sport-events","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shybovycha/sport-events","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shybovycha%2Fsport-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shybovycha%2Fsport-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shybovycha%2Fsport-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shybovycha%2Fsport-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shybovycha","download_url":"https://codeload.github.com/shybovycha/sport-events/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shybovycha%2Fsport-events/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-27T21:02:29.137Z","updated_at":"2026-01-12T09:42:30.248Z","avatar_url":"https://github.com/shybovycha.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SportEvents API\n\n## Brief overview\n\nThis is an API for sport_events Android application. API allows for creating and searching sport events. Yep, that simple as it goes.\n\n## API methods\n\n### General API caveats\n\nWhen everything on the server side goes fine, API method returns JSON in the format `{ success: true, ... }` where `...` stands for\nadditional information, method may return.\n\nWhen everything is bad, method returns JSON `{ success: false, message: \"...\" }`. And the `message` field contains all the errors\nsplit by semicolon sign `;`.\n\n### `GET /users`\n\n**Description:**\n\nGets user's account data.\n\n**Params:**\n* **api_key**, String, required\n\n**Returns:**\n\n    {\n      name: String,\n      email: String,\n      address: String,\n      facebook_id: String,\n      sports: String (joined by comma)\n    }\n\n### `POST /users/update`\n\n**Description:**\n\nUpdates user's account data with the new values.\n\n**Params:**\n* **api_key**, String, required\n* **name**, String, required\n* **email**, String, required\n* **address**, String, required\n\n**Returns:**\n\n*nothing*\n\n### `POST /users/sign_up`\n\n**Description:**\n\nCreates a new user in database. Used on first application run, when user does not have an account.\n\n**Params:**\n* **name**, String, required\n* **email**, String, required\n* **password**, String, required\n* **password_confirmation**, String, required\n\n**Returns:**\n\n* **api_key**, String\n\n### `POST /users/sign_in`\n\n**Description:**\n\nUser logging in. Used on first application run, when user has an account already.\n\n**Params:**\n\n* *email*, String, required\n* *password*, String, required\n\n**Returns:**\n\n* **api_key**, String\n\n### `POST /users/restore_session`\n\n**Description:**\n\nLogs user in after application was closed. Does not require user's credentials and login form - the `api_key` only, which must be stored in application's data, after user logs in or account created.\n\n**Params:**\n\n* **api_key**, String, required\n\n**Returns:**\n\n*nothing*\n\n### `GET /events`\n\n**Description:**\n\nReturns a list of events around the location.\nQuery - a set of keywords, divided by spaces.\nSports - list of sports desired, separated by a comma.\n\n**Params:**\n\n* **address**, String, required\n* **query**, Float, optional\n* **radius**, Radius, optional\n* **sports**, String, optional\n\n**Returns:**\n\nAn array of these structures:\n\n    {\n        id: Integer,\n        title: String,\n        description: String,\n        lat: Float,\n        lng: Float,\n        address: String,\n        sport: String,\n        visitors: [\n            {\n                name: String\n            }\n        ],\n        created_at: DateTime,\n        starts_at: DateTime\n    }\n\nIn case of grouping with `group_by` field:\n\n    {\n      group: String,\n      id: Integer,\n      title: String,\n      description: String,\n      lat: Float,\n      lng: Float,\n      address: String,\n      sport: String,\n      visitors: [\n          {\n              name: String\n          }\n      ],\n      created_at: DateTime,\n      starts_at: DateTime\n    }\n\n### `GET /events/for_user`\n\n**Description:**\n\nReturns a list of events for the specified user.\n\n**Params:**\n\n* **api_key**, String, required\n* **group_by**, String, optional\n\n**Returns:**\n\nReturns data in the same format as for `GET /events`\n\n### `POST /events/create`\n\n**Description:**\n\nCreates a new event in the system.\n\n**Params:**\n\n* **api_key**, String, required\n* **title**, String, required\n* **description**, String, required\n* **address**, String, required\n* **sport**, String, required\n\n**Returns:**\n\n*nothing*\n\n### `GET /events/join`\n\n**Description:**\n\nJoins current user to an event, so he will appear in `visitors` list of event.\n\n**Params:**\n\n* **api_key**, String, required\n* **event_id**, String, required\n\n**Returns:**\n\n*nothing*\n\n### `GET /events/leave`\n\n**Description:**\n\nRemoves current user from event attendees, so he will **not** appear in `visitors` list of event.\n\n**Params:**\n\n* **api_key**, String, required\n* **event_id**, String, required\n\n**Returns:**\n\n*nothing*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshybovycha%2Fsport-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshybovycha%2Fsport-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshybovycha%2Fsport-events/lists"}