Skip to content

mamontes1788/exam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exam docs

This app serves as an exam for my Golang developer application.

Steps to Run the App

  1. Clone the repository.
  2. Run the program using the following command in your command prompt or terminal:
go run cmd/api/main.go

Sample Command Prompt Request

You can use curl to make a sample request to the application. Here's an example:

curl --location --request GET 'http://127.0.0.1:8080/api/v1/retrieveUsers' \
--header 'Content-Type: application/json' \
--data '{
 "usernames": ["TheAlgorithms", "nonExistingId12345", "torvalds", "bradtraversy", "torvalds", "michaelliao", "mamontes1788"]
}'
  1. Run unit tests (optional)
  • Handler Level
go test ./internal/network/http/handler
  • Service Level
go test ./internal/core/service

About

repo for machship application exam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages