+
Skip to content

tomiok/t-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this is a test from T.

This was a screening test, the description is in the main.go file.

Run this

Need go 1.22 or above.

  • clone the repo
 go mod tidy
go run main.go

this will run directly in port 9000

cURLs

create an event

curl --location 'localhost:9000/events' \
--header 'Content-Type: application/json' \
--data '{
"title": "test",
"description": "evt description",
"start_time": 1262304000,
"end_time": 1262404000
}'

get all events

curl --location 'localhost:9000/events'

get event by ID

curl --location 'localhost:9000/events/{id}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载