A tech-based solution that provides farmers with insights and data to make informed decisions about their crops.
GET http://localhost:8000/api/users/ HTTP/1.1
Content-Type: application/json
Authorization: Token <token>PUT http://localhost:8000/api/user/update/ HTTP/1.1
Content-Type: application/json
Authorization: Token <token>
{
"email": "user@email.com",
"first_name": "First Name",
"last_name": "Last Name"
}POST http://localhost:8000/api/auth/register/ HTTP/1.1
content-type: application/json
{
"email": "user@email.com",
"password": "biddweuiuaUI",
"first_name": "First Name",
"last_name": "Last Name"
}POST http://localhost:8000/api/auth/login/ HTTP/1.1
content-type: application/json
{
"email": "user@email.com",
"password": "biddweuiuaUI"
}POST http://localhost:8000/api/auth/user/change-password/ HTTP/1.1
content-type: application/json
Authorization: Token <token>
{
"old_password": "biddweuiuaUI",
"new_password": "biddweuiuaUI123"
}GET http://localhost:8000/api/user/3/ HTTP/1.1
content-type: application/json
Authorization: Token <token>POST http://localhost:8000/api/auth/logout/ HTTP/1.1
content-type: application/json
{"token":<token>}GET http://localhost:8000/api/user/ HTTP/1.1
Content-Type: application/json
Authorization: Token <token> GET http://localhost:8000/api/users/ HTTP/1.1
Content-Type: application/json
Authorization: Token <token> PUT http://localhost:8000/api/user/update/ HTTP/1.1
Content-Type: application/json
Authorization: Token <token>f
{
"email": "user@email.com",
"first_name": "First Name",
"last_name": "Last Name"
}