Recommend this page to a friend! |
![]() |
Info | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 67 | All time: 10,355 This week: 455![]() |
Version | License | PHP version | Categories | |||
farmprice 1.0.0 | The PHP License | 5 | PHP 5, Web services, Business |
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 |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
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.