Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiangtj/api-core
https://github.com/jiangtj/api-core
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jiangtj/api-core
- Owner: jiangtj
- Created: 2023-05-09T15:12:34.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-28T02:13:46.000Z (12 months ago)
- Last Synced: 2023-11-28T03:28:04.081Z (12 months ago)
- Language: Java
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# api-core
一些通用的接口(自用)### Run
```shell
docker run -p 8066:8066 -d ghcr.io/jiangtj/api-core:latest
```也可以使用由GraalVM编译的原生镜像运行,占用内存更少
```shell
docker run -p 8066:8066 -d ghcr.io/jiangtj/api-core-native:latest
```### Api
- `base64d?url=x` Base64解密,解密url地址的内容(假设url获取到时base64的内容,需要解密)
#### 省市区
数据来源 https://github.com/modood/Administrative-divisions-of-China
- `address/provinces` 省列表
- `address/cities` 市列表
- `address/cities/{code}` 使用省code查询市
- `address/areas` 区列表
- `address/areas/{code}` 使用市code查询区
- `address/{code}` 依据指定code,查询详情
- support GraphQl: [address.graphqls](https://github.com/jiangtj/api-core/blob/master/src/main/resources/graphql/address.graphqls)
```graphql
type Query {
provinces: [Province!]!
province(code: ID!): Province
city(code: ID!): City
area(code: ID!): Area
}
# ...
```