| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- # Routes
- # This file defines all application routes (Higher priority routes first)
- # https://www.playframework.com/documentation/latest/ScalaRouting
- # ~~~~
- GET / @controllers.Default.redirect(to = "/view")
- GET /view com.weEat.controllers.ViewController.loader()
- # Shared Route
- # body: com.weEat.shared.models.UserRegistration
- # type: com.weEat.shared.models.UserAuthorization
- PUT /user/ com.weEat.controllers.UserController.registerUser()
- # Shared Route
- # type: Seq[String]
- GET /user/ com.weEat.controllers.UserController.getUsers()
- # Shared Route
- # body: com.weEat.shared.models.GrantRequest
- # type: com.weEat.shared.models.UserAuthorization
- POST /authorize/ com.weEat.controllers.UserController.accessToken()
- # Shared Route
- # body: com.weEat.shared.models.RefreshRequest
- DELETE /authorize/ com.weEat.controllers.UserController.revokeAccessToken()
- # Shared Route
- # mime: text/plain
- # type: String
- GET /user/self/name/ com.weEat.controllers.UserController.getName()
- # Shared Route
- # body: com.weEat.shared.models.FoodNode
- # type: com.weEat.shared.models.FoodNode
- PUT /food/ com.weEat.controllers.FoodController.add()
- # Shared Route
- # type: Seq[com.weEat.shared.models.FoodNode]
- GET /food/ com.weEat.controllers.FoodController.query()
- # Shared Route
- # type: com.weEat.shared.models.FoodNode
- GET /food/:id com.weEat.controllers.FoodController.get(id: String)
- # Shared Route
- # type: gov.usda.nal.fdc.models.FoodItem
- GET /fdc/food com.weEat.controllers.USDAController.getFoods(id: String, fmt: String ?= "Full")
- # Shared Route
- # type: gov.usda.nal.fdc.models.SearchResult
- GET /fdc/food/search com.weEat.controllers.USDAController.getFoodsSearch(q: String, dataType: Seq[String] ?= Nil, pageSize: Option[Short] ?= None, pageNumber: Option[Long] ?= None, sortBy: Option[String] ?= None, sortOrder: Option[String] ?= None)
- # Shared Route
- # body: gov.usda.nal.fdc.models.FoodSearchCriteria
- # type: gov.usda.nal.fdc.models.SearchResult
- POST /fdc/food/search com.weEat.controllers.USDAController.postFoodsSearch()
- # Shared Route
- # type: Seq[gov.usda.nal.fdc.models.Nutrient]
- GET /fdc/nutrient com.weEat.controllers.USDAController.getNutrients()
- # Shared Route
- # type: gov.usda.nal.fdc.models.Nutrient
- GET /fdc/nutrient/:id com.weEat.controllers.USDAController.getNutrient(id: Int)
- # Shared Route
- # type: gov.usda.nal.fdc.models.FoodItem
- GET /fdc/food/:id com.weEat.controllers.USDAController.getFood(id: Long, fmt: String ?= "Full")
- # Map static resources from the /public folder to the /assets URL path
- GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)
- # Forward Webjar requests to the webjar routes
- -> /webjars webjars.Routes
|