Improve RESTful API with Laravel tutorial
3105
$
- Posted:
- Proposals: 2
- Remote
- #920283
- Archived
Description
Experience Level: Entry
Estimated project duration: 1 day or less
Make a tutorial very similar to http://www.tutorials.kodeblog.com/laravel5geocodertutorial
and http://www.tutorials.kodeblog.com/laravel5restapi that will guide someone with all the steps
required to develop the following RESTful API using Laravel.
Use the same syntax highlighter and layout of that blog.
Provide all the code for the exercise and for the blog/article tutorial as a zip file.
1. One will be able to create a new user using POST. The user table should contain the fields: email,
password and randomtoken. The field randomtoken gets randomly generated and either duplicate
email or short password would give a JSON invalid response, returning an error.
2. One will be able to authenticate user and return his token on a GET request with the user email and
password.
3. The Primary key in the users table will be a Foreign Key in a randomlocation table that contain
fields: randomlatitude and randomlongitude.
You will be able to create new a randomlocation entry using POST and providing the user token, and
so the fields randomlatitude and randomlongitude get populated with random longitude and latidude
values.
4. One will be able to return a list of random locations from the randomlocation table on a GET
request.
- Adding user id parameter will limit the result to only random locations of that user.
- Adding latitude, longitude and radius parameters will limit the results to random locations within the given radius from that point.
5. POST request with user token supplied will update its details
with the data from POST latitude and longitude if the supplied user token matches the token of a user that has that location assigned to him on the randomlocations table, otherwise it'll return an error.
6. Create a little frontend app that will allow one to play around a bit with the API features. For instance, one will be able to enter a user token and display a google map using LeafletJS with the random locations of the corresponding user.
and http://www.tutorials.kodeblog.com/laravel5restapi that will guide someone with all the steps
required to develop the following RESTful API using Laravel.
Use the same syntax highlighter and layout of that blog.
Provide all the code for the exercise and for the blog/article tutorial as a zip file.
1. One will be able to create a new user using POST. The user table should contain the fields: email,
password and randomtoken. The field randomtoken gets randomly generated and either duplicate
email or short password would give a JSON invalid response, returning an error.
2. One will be able to authenticate user and return his token on a GET request with the user email and
password.
3. The Primary key in the users table will be a Foreign Key in a randomlocation table that contain
fields: randomlatitude and randomlongitude.
You will be able to create new a randomlocation entry using POST and providing the user token, and
so the fields randomlatitude and randomlongitude get populated with random longitude and latidude
values.
4. One will be able to return a list of random locations from the randomlocation table on a GET
request.
- Adding user id parameter will limit the result to only random locations of that user.
- Adding latitude, longitude and radius parameters will limit the results to random locations within the given radius from that point.
5. POST request with user token supplied will update its details
with the data from POST latitude and longitude if the supplied user token matches the token of a user that has that location assigned to him on the randomlocations table, otherwise it'll return an error.
6. Create a little frontend app that will allow one to play around a bit with the API features. For instance, one will be able to enter a user token and display a google map using LeafletJS with the random locations of the corresponding user.
Daniel A.
100% (3)Projects Completed
5
Freelancers worked with
5
Projects awarded
33%
Last project
13 Dec 2015
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies