feat: domain finished

This commit is contained in:
Elton Minetto
2020-06-25 11:46:45 -03:00
commit 3db4550ee0
47 changed files with 2646 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
# Clean Architecture in Go
[![Build Status](https://travis-ci.org/eminetto/clean-architecture-go.svg?branch=master)](https://travis-ci.org/eminetto/clean-architecture-go)
Clean Architecture sample
## Post
[https://medium.com/@eminetto/clean-architecture-using-golang-b63587aa5e3f](https://medium.com/@eminetto/clean-architecture-using-golang-b63587aa5e3f)
## Build
make
## Run tests
make test
## API requests
### Add a bookmark
```
curl -X "POST" "http://localhost:8080/v1/bookmark" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d $'{
"tags": [
"git",
"social"
],
"name": "Github",
"description": "Github site",
"link": "http://github.com"
}'
```
### Search a bookmark
```
curl "http://localhost:8080/v1/bookmark?name=github" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
```
### Show all bookmarks
```
curl "http://localhost:8080/v1/bookmark" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
```
## CMD
### Search for a bookmark
```
./bin/search github
```