【文件属性】:
文件名称:identity-server
文件大小:26KB
文件格式:ZIP
更新时间:2021-03-27 01:28:51
Go
身份服务器
用于用户身份验证和注册的基本rest API。 注册期间保存的用户属性为:
a. First Name (mandatory)
b. Last Name (mandatory)
c. Password (mandatory)
d. Email (mandatory)
e. Company (optional)
f. Post Code (optional)
g. Accept Terms (mandatory)
h. Date created
该服务器中有三个端点:
注册cURL命令:
curl -X POST \
http://localhost:8081/register \
-H 'Content-Type: application/json' \
-H 'Host: localhost:8081' \
-H 'cache-control: no-
【文件预览】:
identity-server-master
----go.mod(1KB)
----foundation()
--------response.go(1KB)
--------request.go(593B)
--------errorcodes.go(1KB)
----go.sum(10KB)
----migrations()
--------20210226204725_identity_users.up.sql(240B)
--------20210226204725_identity_users.down.sql(26B)
----Dockerfile(154B)
----.circleci()
--------config.yml(1KB)
----business()
--------store()
--------validation()
--------password.go(819B)
----README.md(1KB)
----Makefile(584B)
----docker-compose.yml(1KB)
----.env_test(141B)
----.gitignore(21B)
----app()
--------auth-api()