/farmsale_backend

Primary LanguageGoMIT LicenseMIT

FarmSale API

Setup

Use go version 1.10 due to a known issue with mongo-driver

Routes

Credentials

  1. Admin
{
"email": "admin@user.com",
"password": "user12345"
}
  1. User
{
 "email": "user@user.com",
 "password": "user12345"
 }
  1. Agent
{
"email": "agent@user.com",
"password": "user12345"
}
  1. Manager
{
"email": "manager@user.com",
"password": "user12345"
}

Public Routes

GET https://farmsaledev.herokuapp.com/api/v1

User authenticated route

GET https://farmsaledev.herokuapp.com/api/v1/auth/products

Admin Routes

GET https://farmsaledev.herokuapp.com/api/v1/admin

Manager Routes

GET https://farmsaledev.herokuapp.com/api/v1/manager

AgentRoutes

GET https://farmsaledev.herokuapp.com/api/v1/agent

WORKING DEMO

https://farmsaledev.herokuapp.com/api/v1/