Skip to content

fobus1289/phone-book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run command

rename .env.example -> .env

go run cmd/main.go
  • POST user/register

    • from data
    • login = exampleuser
      password = 123456
      name = user 1
      age  = 18
      
  • POST user/auth

    •   {
            "login":"exampleuser",
            "password":"123456"
        }
      
  • GET user/:name

  • GET user/phone?phone_id=1

  • POST user/phone

    •   {
            "phone": "998999999999",
            "isFax": false,
            "description": "other desc",
            "userId": 1
        }
      
  • PUT user/phone

    • {
          "id":1,
          "phone": "998999999999",
          "isFax": false,
          "description": "other desc",
          "userId": 1
      }
      
  • DELETE user/phone?phone_id=1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages