Skip to content

cat-in-vacuum/middleware_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test task for Middleware Inc

Usage

go build cmd/cmd.go --port=5005

Endpoints

/api/v1/notifications

request example

POST:

{"URL": "https://jsonplaceholder.typicode.com/posts/1"}
{"URL": "https://jsonplaceholder.typicode.com/posts/need404"}
{"URL": "unsupportedschema(://jsonplaceholder.typicode.com/posts/3"}

response

{"url":"unsopportedschema(://jsonplaceholder.typicode.com/posts/3","error":"parse unsopportedschema(://jsonplaceholder.typicode.com/posts/3: invalid URI for request"}
{"url":"https://jsonplaceholder.typicode.com/posts/need404","code":"404 Not Found","error":"non_200_resp_status"}
{"url":"https://jsonplaceholder.typicode.com/posts/1","body":{"body":"qdent occaecati excepturi optio ... reprehenderit","userId":1},"code":"200 OK"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages