user-api.go

command module
v0.0.0-...-173271a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

README

User API

Simple JSON API for managing Users

About

This is a simple test-project to get some experience with go lang. Do not use this project in production!

Setup

With Docker
$ docker build -t user-api .
$ docker run -itp 8080:8080 user-api
Without Docker
$ go run main.go

Example

$ curl 'http://localhost:8080/users/'
[
    {
        "id": "01H31D1G832F40A1J6YCP4J924",
        "name": "max",
        "dateCreated": "2023-06-16T06:07:20.835411646Z",
        "dateUpdated": "2023-06-16T06:07:20.835411646Z"
    }
]

License

Copyright (C) Oliver Amann

This project is licensed under the GNU Affero General Public License Version 3 (AGPL-3.0-only). Please see LICENSE for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL