# Packages
Package mocks is a generated GoMock package.
# Functions
GetArticle renders the article from the context @Summary Get article by id @Description GetArticle returns a single article by id @Tags Articles @Produce json @Param id path string true "article id" @Router /articles/{id} [get] @Success 200 {object} types.Article @Failure 400 {object} types.ErrResponse @Failure 404 {object} types.ErrResponse.
GetOrder renders the order from the context @Summary Get order by id @Description GetOrder returns a single order by id @Tags Orders @Produce json @Param id path string true "order id" @Router /orders/{id} [get] @Success 200 {object} types.Order @Failure 400 {object} types.ErrResponse @Failure 404 {object} types.ErrResponse.
GetRouter configures a chi router and starts the http server @title My API @description This API is a sample go-api.
ListArticles returns all articles in the database @Summary List all articles @Description Get all articles stored in the database @Tags Articles @Produce json @Param page_id query string false "id of the page to be retrieved" @Router /articles [get] @Success 200 {object} types.ArticleList @Failure 400 {object} types.ErrResponse @Failure 404 {object} types.ErrResponse.
ListOrders returns all orders in the database @Summary List all orders @Description Get all orders stored in the database @Tags Orders @Produce json @Param page_id query string false "id of the page to be retrieved" @Router /orders [get] @Success 200 {object} types.OrderList @Failure 400 {object} types.ErrResponse @Failure 404 {object} types.ErrResponse.
PutArticle writes an article to the database @Summary Add an article to the database @Description PutArticle writes an article to the database @Description To write a new article, leave the id empty.
PutOrder writes an order to the database @Summary Add an order to the database @Description PutOrder writes an order to the database @Description To write a new order, leave the id empty.
No description provided by the author
# Variables
No description provided by the author