Skip to content

veziak/helloworld-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helloworld-go

Endpoints:

  • get a message for a username
curl http://localhost:8081/hello/{username}
  • update or create a new user
curl -X PUT -I -d '{"dateOfBirth":"2003-10-12"}'  http://localhost:8081/hello/{username}

To run it locally postgres should be configured and schema should be created manually

CREATE TABLE public.users
(
    username text COLLATE pg_catalog."default" NOT NULL,
    dateofbirth date NOT NULL,
    CONSTRAINT "User_pkey" PRIMARY KEY (username)
)
WITH (
    OIDS = FALSE
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published