Skip to content

This is a Golang-based API for managing users, supporting operations such as user creation, retrieval, and health checks.

Notifications You must be signed in to change notification settings

maslechkin86/go-api-example

Repository files navigation

🧑‍🧒‍🧒 User Service

This is a Golang-based API for managing users, supporting operations such as user creation, retrieval, and health checks.

The API is defined using OpenAPI 3.0 specifications, making it easy to understand, extend, and integrate with.

📑 Table of Contents

📋 Overview

  • API Version: 1.0.0
  • Description: The User Service allows for managing users in a structured, RESTful manner.
  • OpenAPI Specification: api/openapi/user-service.yaml
  • Language: Go

▶️ Getting Started

  1. Clone the repository:

    git clone https://github.com/maslechkin86/go-api-example.git
    cd user-service
  2. Install dependencies:

    go mod download
  3. Download tools:

    make tools-install
  4. Generate API code from the OpenAPI spec:

    make gen
  5. Run the service:

    make go-run

🗂️ Project Structure

```text
user-service/
├── api/                 # API specifications (e.g., OpenAPI)
├── cmd/                 # Main application entry points
├── internal/            # Private application code (business logic, handlers)
├── pkg/                 # Public packages
└── Makefile             # Build, test, and generate commands
```

🧪 Testing

Run unit and integration tests using:

make test

About

This is a Golang-based API for managing users, supporting operations such as user creation, retrieval, and health checks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published