backend-go

POST signup
{{url}}/auth/signup
BODY raw

Example Request
GET userdata
{{url}}/auth/userdata
Example Request
                                                
GET http://localhost:8000/auth/userdata
                                            
POST login
{{url}}/auth/login
BODY raw

                                                  
                                                    
{
    "username":"{{username}}",
    "password":"{{password}}"
}
                                                  
                                              
Example Request
                                                
POST http://localhost:8000/auth/login

{
    "username":"admin",
    "password":"password"
}
                                            
POST Validate Credential
{{url}}/auth/validatecredetial
Example Request
                                                
POST http://localhost:8000/auth/validatecredetial
                                            
GET list
{{url}}/commentaries
HEADERS

Origin
http://localhost:3000

None

Example Request
                                                
GET http://localhost:8000/commentaries
                                            
POST create
{{url}}/commentaries
BODY raw

Example Request
GET detail
{{url}}/commentaries/8
Example Request
                                                
GET http://localhost:8000/commentaries/8
                                            
DELETE delete
{{url}}/commentaries/15
Example Request
                                                
DELETE http://localhost:8000/commentaries/15
                                            
GET list
{{url}}/courses?username={{username}}
HEADERS

Origin
http://localhost:3000

None

PARAMS

username
{{username}}

None

Example Request
                                                
GET http://localhost:8000/courses?username=admin
                                            
POST create
{{url}}/courses
BODY raw

                                                  
                                                    
{
   "name": "Docker",
   "image":"http://example.com/course-docker.jpg"
}
                                                  
                                              
Example Request
                                                
POST http://localhost:8000/courses

{
   "name": "Docker",
   "image":"http://example.com/course-docker.jpg"
}
                                            
POST create bulk
{{url}}/courses?type=bulk
PARAMS

type
bulk

None

BODY raw

Example Request
PATCH update
{{url}}/courses/1
BODY raw

                                                  
                                                    
{
   "name":"Docker expert"
}
                                                  
                                              
Example Request
                                                
PATCH http://localhost:8000/courses/1

{
   "name":"Docker expert"
}
                                            
DELETE delete
{{url}}/courses/3
Example Request
                                                
DELETE http://localhost:8000/courses/3
                                            
GET list
{{url}}/achievements?username={{username}}
HEADERS

Origin
http://localhost:3000

None

PARAMS

username
{{username}}

None

Example Request
                                                
GET http://localhost:8000/achievements?username=admin
                                            
POST create
{{url}}/achievements
BODY raw

                                                  
                                                    
{
    "year": 2023,
    "comment":"i'm got a job at DevOps Engineer",
    "title":"Abstract Development Studio SA"
}
                                                  
                                              
Example Request
                                                
POST http://localhost:8000/achievements

{
    "year": 2023,
    "comment":"i'm got a job at DevOps Engineer",
    "title":"Abstract Development Studio SA"
}
                                            
POST create bulk
{{url}}/achievements?type=bulk
PARAMS

type
bulk

None

BODY raw

Example Request
PATCH update
{{url}}/achievements/1
BODY raw

                                                  
                                                    
{
   "name":"Docker expert"
}
                                                  
                                              
Example Request
                                                
PATCH http://localhost:8000/achievements/1

{
   "name":"Docker expert"
}
                                            
DELETE delete
{{url}}/achievements/7
Example Request
                                                
DELETE http://localhost:8000/achievements/7
                                            
GET vcard
{{url}}/vcard/admin
Example Request
                                                
GET http://localhost:8000/vcard/admin
                                            
PATCH profile
{{url}}/profile
BODY raw

Example Request
GET profile
{{url}}/profile?username={{username}}
PARAMS

username
{{username}}

None

BODY raw

                                                  
                                                    
{
    "telephone":"+504 87654321"
}
                                                  
                                              
Example Request
                                                
GET http://localhost:8000/profile?username=admin

{
    "telephone":"+504 87654321"
}
                                            
POST create
{{url}}/telephone
BODY raw

                                                  
                                                    
{
    "phoneNumber":"{{Telephone}}",
    "countryCode":"504",
    "whatsapp":true
}
                                                  
                                              
Example Request
                                                
POST http://localhost:8000/telephone

{
    "phoneNumber":"87654321",
    "countryCode":"504",
    "whatsapp":true
}
                                            
DELETE delete
{{url}}/telephone/1
BODY raw

                                                  
                                                    
{
    "phoneNumber":"{{Telephone}}",
    "countryCode":"504",
    "whatsapp":true
}
                                                  
                                              
Example Request
                                                
DELETE http://localhost:8000/telephone/1

{
    "phoneNumber":"87654321",
    "countryCode":"504",
    "whatsapp":true
}
                                            
GET getusers
{{url}}/users
Example Request
                                                
GET http://localhost:8000/users
                                            
GET list
{{url}}/projects?username=admin
PARAMS

username
admin

None

Example Request
                                                
GET http://localhost:8000/projects?username=admin
                                            
POST create
{{url}}/projects
BODY raw

Example Request
                                                
POST http://localhost:8000/projects

{
    "title":"portfolio",
    "description": "this is a portfolio made with golang and react",
    "startDate":"2024-06-21T09:49:48.385Z"
}
                                            
PATCH partial update
{{url}}/projects/1
BODY raw

                                                  
                                                    
{
    "url":"http://example.com/assets/image.jpg"
}
                                                  
                                              
Example Request
                                                
PATCH http://localhost:8000/projects/1

{
    "url":"http://example.com/assets/image.jpg"
}
                                            
DELETE delete
{{url}}/projects/1
Example Request
                                                
DELETE http://localhost:8000/projects/1
                                            
GET list
{{url}}/galleries?username=admin
PARAMS

username
admin

None

Example Request
                                                
GET http://localhost:8000/galleries?username=admin
                                            
POST create
{{url}}/galleries
BODY raw

                                                  
                                                    
{
    "image":"http://example.com/assets/image_1.jpg"
}
                                                  
                                              
Example Request
                                                
POST http://localhost:8000/galleries

{
    "image":"http://example.com/assets/image_1.jpg"
}
                                            
DELETE delete
{{url}}/galleries/2
Example Request
                                                
DELETE http://localhost:8000/galleries/2
                                            
GET version
{{url}}/version
HEADERS

Origin
<calculated when request is sent>

None

Example Request
                                                
GET http://localhost:8000/version