Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ningenme/kiwa-api
趣味開発 auth-api (product name: kiwa)
https://github.com/ningenme/kiwa-api
kotlin mybatis mysql ningenme-project openapi redis spring-boot spring-security
Last synced: 19 days ago
JSON representation
趣味開発 auth-api (product name: kiwa)
- Host: GitHub
- URL: https://github.com/ningenme/kiwa-api
- Owner: ningenMe
- Created: 2023-03-10T16:00:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T13:16:43.000Z (about 1 year ago)
- Last Synced: 2025-01-03T00:46:03.556Z (23 days ago)
- Topics: kotlin, mybatis, mysql, ningenme-project, openapi, redis, spring-boot, spring-security
- Language: Kotlin
- Homepage:
- Size: 2.34 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
docker-compose -f ./tool/docker-compose.yaml up
```# local
```shell
# user-post
curl -XPOST -d '{"userId":"user0","password":"hoge"}' -H 'Content-Type: application/json' localhost:8080/users -i
# login
curl -XPOST -d '{"userId":"user0","password":"hoge"}' -H 'Content-Type: application/json' localhost:8080/login -i | grep cookie | awk '{print $2}'
# user-me-get
curl -b `curl -XPOST -d '{"userId":"user0","password":"hoge"}' -H 'Content-Type: application/json' localhost:8080/login -i | grep cookie | awk '{print $2}'` localhost:8080/users/me -i
```# prod
```shell
# user-post
curl -XPOST -d '{"userId":"user0","password":"hoge"}' -H 'Content-Type: application/json' https://kiwa-api.ningenme.net/users -i
# login
curl -XPOST -d '{"userId":"user0","password":"hoge"}' -H 'Content-Type: application/json' https://kiwa-api.ningenme.net/login -i | grep cookie | awk '{print $2}'
# user-me-get
curl -b `curl -XPOST -d '{"userId":"user0","password":"hoge"}' -H 'Content-Type: application/json' https://kiwa-api.ningenme.net/login -i | grep cookie | awk '{print $2}'` https://kiwa-api.ningenme.net/users/me -i
```# db
```shell
insert into authority (authority_id) values ('COMPRO_CATEGORY');
insert into relation_user_authority (user_id, authority_id) values ('user0','COMPRO_CATEGORY');
```