An open API service indexing awesome lists of open source software.

https://github.com/ahmed-ibrahim-30/go-openapi-user-crud

A Go REST API built with OpenAPI (oapi-codegen) and Chi, demonstrating full CRUD operations on users. Includes OpenAPI specification (.yaml) for documentation and testing with Swagger.
https://github.com/ahmed-ibrahim-30/go-openapi-user-crud

go golang openai swagger

Last synced: about 1 month ago
JSON representation

A Go REST API built with OpenAPI (oapi-codegen) and Chi, demonstrating full CRUD operations on users. Includes OpenAPI specification (.yaml) for documentation and testing with Swagger.

Awesome Lists containing this project

README

          

This project is a Go REST API example that uses OpenAPI (Swagger) to define endpoints and oapi-codegen to generate type-safe server code.
It demonstrates complete CRUD operations (Create, Read, Update, Delete) for managing users, with automatic validation and documentation support.

Key features:

✅ API contract-first design using OpenAPI spec (openapi.yaml).

✅ Generated Go types and handlers with oapi-codegen.

✅ RESTful endpoints (GET, POST, PUT, DELETE).

✅ CORS enabled for Swagger Editor / UI testing.

✅ Uses Chi router for routing.

✅ Easy integration with Swagger UI.