Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cirolee/mock-api-serverless


https://github.com/cirolee/mock-api-serverless

Last synced: 3 days ago
JSON representation

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 |