Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-08-26 (16 days ago) ![]() | Not yet rated by the users | Total: 25 | All time: 10,318 This week: 97![]() |
Version | License | PHP version | Categories | |||
farmprice 1.0 | The PHP License | 5 | PHP 5, Web services, Business |
Description | Author | |||
This package implements API to get the prices from agriculture markets. Innovation Award
|
|
An API developed to easily get current farm prices of different in the Nigerian agricultural market. API was developed using slim v3
I have added a sample database data in the src/db/ folder. Simply import.
Clone this repo and call these endpoints using the defined RESTFul methods
POST '/api/v1/user/new' Pass: {'name' => 'name', 'state' => 'state', 'about' => 'about'} - Add a farmer
GET '/api/v1/user/{id}' - Get details of a farmer
POST '/api/v1/farm/produce/new' - Pass : {'name' => 'name', 'description' => 'description'} Add a farm produce
POST '/api/v1/farm/produce/add/price' - Pass : {'userId' => 'userId', 'produceId' => 'produceId', 'pricePerKg' => 'pricePerKg'}- Add price for a farm produce
PUT '/api/v1/farm/produce/add/price' - Pass : {'userId' => 'userId', 'produceId' => 'produceId', 'pricePerKg' => 'pricePerKg'} Update farm price
GET '/api/v1/farm/produce/price/{id}' - fetch prices of a particular produce
GET '/api/v1/farm/produce/list' - fetch all produces
Keep in touch: radioactive.uche11@gmail.com
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation | ||
![]() |
Class | Class source | ||
![]() |
Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.