Skip to content

romaryoricardo/api-golang-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-GOLANG-EXAMPLE

this api was develop to study.

RUN LOCAL

# clone repo
git clone https://github.com/romaryoricardo/api-golang-example.git 
cd api-golang-example

# create folder persistent data to postgresql
mkdir postgresql

# start application
docker-compose up --build

Test API Response

curl --location --request GET 'localhost:8080'

ADD USER

curl --location --request POST 'localhost:8080/users' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Romaryo",
    "email": "r@gmail.com"
}'

LIST USERS

curl --location --request GET 'localhost:8080/users'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published