Skip to content

Tadej25/Go-API-naloga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API naloga

A basic API for displaying temperature data for cities.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Go (version 1.16 or higher)
  • Git

Installation

  1. Clone the repository:
git clone https://github.com/your-username/Go-API-naloga.git
  1. Change into the project directory:
cd Go-API-naloga
  1. Install the required dependencies:
go get -u github.com/gin-gonic/gin
go get -u github.com/ahmetb/go-linq/v3
go get -u github.com/swaggo/gin-swagger
go get -u github.com/swaggo/files
  1. Run the application:
go run main.go

The API will start running on http://localhost:8080.

API Documentation

The API documentation is generated using Swagger. To access the Swagger UI, navigate to http://localhost:8080/swagger/index.html.

Built With

  • Go - The programming language used
  • Gin - A web framework for Go
  • go-linq - A LINQ-like library for Go
  • gin-swagger - A Swagger 2.0 documentation generator for Gin
  • swaggo/files - A Swagger 2.0 file serving package for Gin

Authors

  • Tadej Lipar - Initial work - Tadej25

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages