package
0.0.0-20240913171027-470388c04958
Repository: https://github.com/krsoninikhil/go-rest-kit.git
Documentation: pkg.go.dev

# README

go-rest-kit example

This example package adds the rest API for CRUD actions for following types of resources

  • Auth: API to sigup using phone and verify OTP and refresh the access tokens
  • Independent resource (BusinessType): CRUD APIs for a resource which doesn't require any context information
  • User context dependent resource (Business): CRUD for a resource where authenticated user id is required from context
  • Child resource (Product): CRUD for a resouce which is nested under another resource and parent id is extracted from the api path

# Structs

Business is an example model with user context.
request and response for Business CRUD.
request and response for Business CRUD.
BusinessType is an example model without any user context.
request and response for business type CRUD.
request and response for business type CRUD.
No description provided by the author
Product is an example model for nested resources where Business is the parent model.
request and response for product CRUD.
request and response for product CRUD.
No description provided by the author