Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cirolee/mock-api-serverless
https://github.com/cirolee/mock-api-serverless
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cirolee/mock-api-serverless
- Owner: CiroLee
- Created: 2024-09-13T09:48:47.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T09:28:13.000Z (about 2 months ago)
- Last Synced: 2024-09-15T18:46:43.010Z (about 2 months ago)
- Language: Go
- Homepage: https://mock-data-server.vercel.app
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mock-api-server
serverless, written in go and deployed on vercel
## APIs
| Path | Method | Parameters | Description | Default |
| ------------- | ------ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| /api/hello | GET | | test api, return "hello world" | |
| /api/consumer | GET | num | return consumer data, accept `num` to special amount | 10 |
| /api/list | GET | num, min, max, decimal | return a list of random data, accept `num` to special amount, `min` and `max` to special range, `decimal` to special decimal places | num=12,min=0,max=2000, decimal=0 |