2018-06-10 14:14:10 +02:00
|
|
|
package v1
|
|
|
|
|
|
|
|
import (
|
2018-06-10 14:22:37 +02:00
|
|
|
"github.com/labstack/echo"
|
|
|
|
"net/http"
|
2018-06-10 14:14:10 +02:00
|
|
|
)
|
|
|
|
|
2018-07-10 14:02:23 +02:00
|
|
|
// AddList ...
|
2018-06-13 13:45:22 +02:00
|
|
|
func AddList(c echo.Context) error {
|
2018-07-05 08:52:05 +02:00
|
|
|
// swagger:operation PUT /namespaces/{namespaceID}/lists lists addList
|
2018-06-13 13:45:22 +02:00
|
|
|
// ---
|
2018-07-05 08:52:05 +02:00
|
|
|
// summary: Creates a new list owned by the currently logged in user in that namespace
|
2018-06-13 13:45:22 +02:00
|
|
|
// consumes:
|
|
|
|
// - application/json
|
|
|
|
// produces:
|
|
|
|
// - application/json
|
|
|
|
// parameters:
|
2018-07-05 08:52:05 +02:00
|
|
|
// - name: namespaceID
|
|
|
|
// in: path
|
|
|
|
// description: ID of the namespace that list should belong to
|
|
|
|
// type: string
|
|
|
|
// required: true
|
2018-06-13 13:45:22 +02:00
|
|
|
// - name: body
|
|
|
|
// in: body
|
2018-07-05 08:52:05 +02:00
|
|
|
// required: true
|
2018-06-13 13:45:22 +02:00
|
|
|
// schema:
|
|
|
|
// "$ref": "#/definitions/List"
|
|
|
|
// responses:
|
|
|
|
// "200":
|
|
|
|
// "$ref": "#/responses/List"
|
|
|
|
// "400":
|
|
|
|
// "$ref": "#/responses/Message"
|
|
|
|
// "403":
|
|
|
|
// "$ref": "#/responses/Message"
|
|
|
|
// "500":
|
|
|
|
// "$ref": "#/responses/Message"
|
|
|
|
|
2018-07-12 00:30:31 +02:00
|
|
|
return echo.NewHTTPError(http.StatusNotImplemented)
|
2018-06-13 13:45:22 +02:00
|
|
|
}
|
|
|
|
|
2018-07-10 14:02:23 +02:00
|
|
|
// UpdateList ...
|
2018-06-13 13:45:22 +02:00
|
|
|
func UpdateList(c echo.Context) error {
|
|
|
|
// swagger:operation POST /lists/{listID} lists upadteList
|
|
|
|
// ---
|
|
|
|
// summary: Updates a list
|
|
|
|
// consumes:
|
|
|
|
// - application/json
|
|
|
|
// produces:
|
|
|
|
// - application/json
|
|
|
|
// parameters:
|
|
|
|
// - name: listID
|
|
|
|
// in: path
|
|
|
|
// description: ID of the list to update
|
|
|
|
// type: string
|
|
|
|
// required: true
|
|
|
|
// - name: body
|
|
|
|
// in: body
|
|
|
|
// schema:
|
|
|
|
// "$ref": "#/definitions/List"
|
|
|
|
// responses:
|
|
|
|
// "200":
|
|
|
|
// "$ref": "#/responses/List"
|
|
|
|
// "400":
|
|
|
|
// "$ref": "#/responses/Message"
|
|
|
|
// "403":
|
|
|
|
// "$ref": "#/responses/Message"
|
|
|
|
// "500":
|
|
|
|
// "$ref": "#/responses/Message"
|
|
|
|
|
2018-07-12 00:30:31 +02:00
|
|
|
return echo.NewHTTPError(http.StatusNotImplemented)
|
2018-06-10 14:22:37 +02:00
|
|
|
}
|