-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Gin web framework in codebase
- Loading branch information
Showing
26 changed files
with
1,386 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,4 +63,24 @@ Create next migration path | |
$ make migrate-db-create-next-migration-path | ||
/migrations/20230907110931_bank-db-migration.up.sql | ||
/migrations/20230907110931_bank-db-migration.down.sql | ||
~~~ | ||
|
||
## Test | ||
|
||
Example uses [httpie](https://httpie.io) | ||
|
||
~~~json | ||
$ http POST localhost:8080/users username=johndoe password=qwerty full_name=John [email protected] | ||
HTTP/1.1 200 OK | ||
Content-Length: 164 | ||
Content-Type: application/json; charset=utf-8 | ||
Date: Fri, 27 Oct 2023 18:41:58 GMT | ||
|
||
{ | ||
"created_at": "2023-10-27T18:41:58.248839Z", | ||
"email": "[email protected]", | ||
"full_name": "John", | ||
"password_changed_at": "0001-01-01T00:00:00Z", | ||
"username": "johndoe" | ||
} | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.