Skip to content

danmanor/WebServerProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go App With Swagger

A simple web server for managing users

Overview

This server was generated by the [swagger-codegen] (https://github.com/swagger-api/swagger-codegen) project.
By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

To see how to make this your own, look here:

README

  • API version: 1.0
  • Build date: 2022-08-21T08:24:57.730Z[GMT]

Running the app with minikube

To run the server, follow these simple steps:

pull the app-k8s folder

minikube start
kubectl create secret generic postgres-password --from-literal POSTGRES_PASSWORD=<password>
kubectl apply -f app-k8s

pull app-client then run inside:

go run main.go

Documentation for API Endpoints

Class Method HTTP request Description
DefaultApi AddUser Post /api/users Create a new user in the system
DefaultApi DeleteUser Delete /api/users/{id} Deletes a user from the system
DefaultApi FindUsers Get /api/users Retrieves all the users from the system

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

dmanor@redhat.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published