https://github.com/junbong/go-api-test
https://github.com/junbong/go-api-test
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/junbong/go-api-test
- Owner: junbong
- Created: 2017-05-23T05:14:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T13:58:54.000Z (about 9 years ago)
- Last Synced: 2025-03-17T18:22:40.488Z (over 1 year ago)
- Language: Go
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to go-api-test with Revel
[Revel](https://revel.github.io/) is a high-productivity web framework for the [Go language](http://www.golang.org/).
### Start the web server:
```sh
$ export $GOPATH=$REVEL_HOME
$ cd $GOPATH
$ revel run github.com/Junbong/go-api-test
```
### Go to http://localhost:9000/ and you'll see:
"It works"
## Routes
### Shop Funnels
[http://localhost:9000/shops/:shop_id/funnels](http://localhost:9000/shops/:shop_id/funnels)
* URL params
* `shop_id`: Single shop ID, comma separated multiple shop IDs, or tag
* Query params
* `from`: Date formatted YYYY-MM-DD
* `to`: Date formatted YYYY-MM-DD
* `profile`: Comma separated multiple profiles
### Shop Funnels Average
[http://localhost:9000/shops/:shop_id/funnels/average](http://localhost:9000/shops/:shop_id/funnels/average)
* URL params
* `shop_id`: Single shop ID, comma separated multiple shop IDs, or tag
* Query params
* `from`: Date formatted YYYY-MM-DD
* `to`: Date formatted YYYY-MM-DD
* `profile`: Comma separated multiple profiles
## Code Layout
The directory structure of a generated Revel application:
conf/ Configuration directory
app.conf Main app configuration file
routes Routes definition file
app/ App sources
init.go Interceptor registration
controllers/ App controllers go here
views/ Templates directory
messages/ Message files
public/ Public static assets
css/ CSS files
js/ Javascript files
images/ Image files
tests/ Test suites
## Help
* The [Getting Started with Revel](http://revel.github.io/tutorial/gettingstarted.html).
* The [Revel guides](http://revel.github.io/manual/index.html).
* The [Revel sample apps](http://revel.github.io/examples/index.html).
* The [API documentation](https://godoc.org/github.com/revel/revel).