{"id":28941224,"url":"https://github.com/kmulqueen/go-rest-api","last_synced_at":"2025-09-01T22:38:42.734Z","repository":{"id":300665429,"uuid":"1006753261","full_name":"kmulqueen/go-rest-api","owner":"kmulqueen","description":"REST API built with Go","archived":false,"fork":false,"pushed_at":"2025-06-23T00:29:17.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T01:28:08.512Z","etag":null,"topics":["go","golang","rest-api"],"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/kmulqueen.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,"zenodo":null}},"created_at":"2025-06-22T23:43:56.000Z","updated_at":"2025-06-23T00:29:20.000Z","dependencies_parsed_at":"2025-06-23T01:28:47.390Z","dependency_job_id":"6d94a005-03c3-4661-b7ea-8f7e2cddfb7a","html_url":"https://github.com/kmulqueen/go-rest-api","commit_stats":null,"previous_names":["kmulqueen/go-rest-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kmulqueen/go-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmulqueen%2Fgo-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmulqueen%2Fgo-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmulqueen%2Fgo-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmulqueen%2Fgo-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kmulqueen","download_url":"https://codeload.github.com/kmulqueen/go-rest-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmulqueen%2Fgo-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273203230,"owners_count":25063275,"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-09-01T02:00:09.058Z","response_time":120,"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":["go","golang","rest-api"],"created_at":"2025-06-23T02:09:37.894Z","updated_at":"2025-09-01T22:38:42.722Z","avatar_url":"https://github.com/kmulqueen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go REST API - Event Booking System\n\nA comprehensive REST API built with Go for managing event bookings. This project serves as a practical learning exercise for Go development while creating a reusable foundation for future event management applications.\n\n## Table of Contents\n\n- [Go REST API - Event Booking System](#go-rest-api---event-booking-system)\n  - [Table of Contents](#table-of-contents)\n  - [Features](#features)\n  - [Getting Started](#getting-started)\n    - [Prerequisites](#prerequisites)\n    - [Installation](#installation)\n    - [Running the API](#running-the-api)\n  - [API Documentation](#api-documentation)\n    - [Authentication](#authentication)\n    - [Events Endpoints](#events-endpoints)\n    - [User Endpoints](#user-endpoints)\n\n## Features\n\n- **Event Management**: Create, read, update, and delete events\n- **User Authentication**: JWT-based authentication system\n- **Event Registration**: Users can register for and cancel event bookings\n- **Authorization**: Role-based access control for event operations\n- **RESTful Design**: Clean and intuitive API endpoints\n- **API Versioning**: Structured versioning for future compatibility\n\n## Getting Started\n\n### Prerequisites\n\n- Go 1.19 or higher\n- Git\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/yourusername/go-rest-api.git\n   cd go-rest-api\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   go mod download\n   ```\n\n3. Set up environment variables:\n   ```bash\n   cp .env.example .env\n   # Edit .env with your configuration\n   ```\n\n### Running the API\n\n```bash\ngo run main.go\n```\n\nThe API will start on `http://localhost:8080` by default.\n\n## API Documentation\n\nAll endpoints are versioned using `/api/v1/` prefix. This allows for future API evolution while maintaining backward compatibility.\n\n### Authentication\n\nMost endpoints require authentication. Include the JWT token in the Authorization header:\n\n```\nAuthorization: Bearer \u003cyour-jwt-token\u003e\n```\n\n### Events Endpoints\n\n| Method   | Endpoint              | Description              | Auth Required | Notes              |\n| -------- | --------------------- | ------------------------ | ------------- | ------------------ |\n| `GET`    | `/api/v1/events`      | Get all available events | No            | Public endpoint    |\n| `GET`    | `/api/v1/events/{id}` | Get event by ID          | No            | Public endpoint    |\n| `POST`   | `/api/v1/events`      | Create a new event       | Yes           | Event creator only |\n| `PUT`    | `/api/v1/events/{id}` | Update an event          | Yes           | Event creator only |\n| `DELETE` | `/api/v1/events/{id}` | Delete an event          | Yes           | Event creator only |\n\n### User Endpoints\n\n| Method   | Endpoint                       | Description               | Auth Required | Notes             |\n| -------- | ------------------------------ | ------------------------- | ------------- | ----------------- |\n| `POST`   | `/api/v1/signup`               | Create a new user account | No            | Returns user data |\n| `POST`   | `/api/v1/login`                | Authenticate user         | No            | Returns JWT token |\n| `POST`   | `/api/v1/events/{id}/register` | Register for an event     | Yes           | User registration |\n| `DELETE` | `/api/v1/events/{id}/register` | Cancel event registration | Yes           | User cancellation |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmulqueen%2Fgo-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkmulqueen%2Fgo-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmulqueen%2Fgo-rest-api/lists"}