{"id":29747496,"url":"https://github.com/jkaninda/okapi-example","last_synced_at":"2025-07-26T08:40:28.473Z","repository":{"id":297484902,"uuid":"993011735","full_name":"jkaninda/okapi-example","owner":"jkaninda","description":"A simple example demonstrating Okapi API","archived":false,"fork":false,"pushed_at":"2025-07-13T12:25:12.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T13:18:56.623Z","etag":null,"topics":["go","go-api-servers","go-openapi","go-server","go-swagger","go-web-framework","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jkaninda.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,"zenodo":null}},"created_at":"2025-05-30T04:21:11.000Z","updated_at":"2025-07-13T12:25:15.000Z","dependencies_parsed_at":"2025-06-05T18:41:15.947Z","dependency_job_id":"a9291c45-399a-42a5-bcf3-ee906d747af6","html_url":"https://github.com/jkaninda/okapi-example","commit_stats":null,"previous_names":["jkaninda/okapi-example"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jkaninda/okapi-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Fokapi-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Fokapi-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Fokapi-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Fokapi-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkaninda","download_url":"https://codeload.github.com/jkaninda/okapi-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Fokapi-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267141228,"owners_count":24041984,"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-07-26T02:00:08.937Z","response_time":62,"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","go-api-servers","go-openapi","go-server","go-swagger","go-web-framework","golang","rest-api"],"created_at":"2025-07-26T08:40:03.706Z","updated_at":"2025-07-26T08:40:28.466Z","avatar_url":"https://github.com/jkaninda.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Okapi Example\n\nA simple example demonstrating the Okapi API Framework\n\nOkapi is a modern, minimalist HTTP web framework for Go, inspired by FastAPI's elegance. Designed for simplicity, performance, and developer happiness, it helps you build fast, scalable, and well-documented APIs with minimal boilerplate.\n\n[Github: https://github.com/jkaninda/okapi](https://github.com/jkaninda/okapi)\n\n## Prerequisites\n\n- Go installed\n- Git installed\n\n## Features\n\n- Basic Okapi implementation example\n- Okapi middlewares\n- Okapi Route Definition\n- Ready-to-run code structure\n\n## Getting Started\n\n### Clone the Repository\n\n```shell\ngit clone https://github.com/jkaninda/okapi-example\ncd okapi-example\n```\n\n### Install Dependencies\n\n```shell\ngo mod tidy\n```\n\n### Run the Application\n\n```shell\ngo run .\n```\n\n### Using Docker\n\n```shell\ndocker run --rm --name okapi-example -p 8080:8080 jkaninda/okapi-example\n```\n\nVisit [`http://localhost:8080`](http://localhost:8080) to see the response:\n\n```json\n{\"message\": \"Welcome to the Okapi Web Framework!\"}\n```\n\nVisit [`http://localhost:8080/docs/`](http://localhost:8080/docs/) to see the documentation\n\n## Project Structure\n\n```\n.\n├── main.go          # Main application file\n├── middlewares      # Middlewares package\n├── controllers      # Controllers package\n├── routes           # Routes package\n├── models           # Models package\n└── README.md        # Project documentation\n```\n\n### Swagger UI Preview\n\nOkapi automatically generates Swagger UI for all routes:\n\n\n![Okapi Swagger Interface](https://raw.githubusercontent.com/jkaninda/okapi-example/main/swagger.png)\n\n---\n## License\n\n[MIT](LICENSE) - Feel free to use and modify this example.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkaninda%2Fokapi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkaninda%2Fokapi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkaninda%2Fokapi-example/lists"}