{"id":25874054,"url":"https://github.com/liedsonfsa/go-rest-api","last_synced_at":"2026-05-14T19:06:01.906Z","repository":{"id":279827425,"uuid":"935589940","full_name":"Liedsonfsa/go-rest-api","owner":"Liedsonfsa","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-27T16:53:49.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T23:41:14.125Z","etag":null,"topics":["gin-gonic","golang","jwt"],"latest_commit_sha":null,"homepage":"","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/Liedsonfsa.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-19T17:33:53.000Z","updated_at":"2025-02-27T19:44:47.000Z","dependencies_parsed_at":"2025-02-27T23:57:44.922Z","dependency_job_id":null,"html_url":"https://github.com/Liedsonfsa/go-rest-api","commit_stats":null,"previous_names":["liedsonfsa/go-rest-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liedsonfsa%2Fgo-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liedsonfsa%2Fgo-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liedsonfsa%2Fgo-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liedsonfsa%2Fgo-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Liedsonfsa","download_url":"https://codeload.github.com/Liedsonfsa/go-rest-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482235,"owners_count":19969870,"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-gonic","golang","jwt"],"created_at":"2025-03-02T09:18:20.448Z","updated_at":"2026-05-14T19:06:01.901Z","avatar_url":"https://github.com/Liedsonfsa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rest API in Go \u003cimg src=\"images/go-gopher-svgrepo-com.svg\" width=\"30px\"\u003e\n\nThis is an API that is capable of managing events, thus being able to create, remove and update events. It is also possible to register users for events and remove a user's registration from an event.\n\n## Cloning and accessing the repository\n```bash\ngit clone https://github.com/Liedsonfsa/go-rest-api.git\ncd go-rest-api\n```\n\n## Downloading dependencies\n```go\ngo mod downloading\n```\n\n## Environment variables\nCreate a .env file with the following variables\n\n```bash\nSECRET_KEY= # secrete key for signing jwt tokens\nDB_NAME= # database name\nDB_USER= # database user\nDB_PASSWORD= # database password\n```\n\n## Running the API\n```go\ngo run main.go\n```\n\n## Routes that do not require authentication\n\n```bash\nGET {host}/events       # searching for all events\n```\n```bash\nGET {host}/events/id    # searching for an event by id\n```\n\n```bash\nPOST {host}/signup      # registering a new user\n```\n```bash\nPOST {host}/login       # user login\n```\n\n\n## Routes that require authentication\n\n```bash\nPOST {host}/events      # creating a new event\n```\n```bash\nPUT {host}/events/id    # updating a specific event\n```\n```bash\nDELETE {host}/events/id   # deleting a specific event\n```\n```bash\nPOST {host}/events/id/register      # registering a user in a specific event\n```\n```bash\nDELETE {host}/events/id/register    # deleting a user's record of a given event\n```\n\n#### Examples of how routes are used are in the folder `/api-test`\n\n#### To perform requests using the files contained in the `/api-test` folder, the `REST Client` extension is required.\n\n\u003cimg src=\"images/rest-client.png\"\u003e\n\n#### After installing the extension, open some test file and click `Send Request`\n\n\u003cimg src=\"images/send-request.png\"\u003e\n\n## Technologies\n\n- Go\n- Gin\n- MySQL\n- JWT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliedsonfsa%2Fgo-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliedsonfsa%2Fgo-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliedsonfsa%2Fgo-rest-api/lists"}