View Code? Open in Web Editor
NEW
RESTful API for IP2 Android application, created with Lumen Framework
ip2_api's Introduction
๐ญ Working as an Azure Data Engineer @ Lingaro, Warsaw
๐ฑ Interested in Data Engineering, Distributed Systems and Software Architecture
๐ซ You can reach me on Twitter (@bartoszgajda55) or LinkedIn (Bartosz Gajda)
ip2_api's People
Stargazers
ip2_api's Issues
Could you make an endpoint to add a recent quiz to the table?
Takes QuizID, UserID, Score
Thanks :)
Require new Endpoints for the Question table
Add single question
Takes
QuizID (foreign key) :num
QuestionString :string
QuestionImage :string
CorrectAnswer :string
WrongAnswer1 :string
WrongAnswer2 :string
WrongAnswer3 :string
Add array of questions
Takes
QuizID
Array of JSON Objects
(this prevents a post request for every question, there are a lot)
Edit question
Takes optional
QuestionString :string
QuestionImage :string
CorrectAnswer :string
WrongAnswer1 :string
WrongAnswer2 :string
WrongAnswer3 :string
Delete question
Takes
Throws 500 on count method
Could the /api/user/find endpoint have a response like /api/user/{id} does?
This will be used to find users by email/username to allow admins to ban users by providing an email/username instead of ID
$ user ->QuizessCompleted = $ request ->input ('quizesscompleted' );
Line 131
Typo in column heading, should be "QuizzessCompleted"
public function edit (Request $ request , $ id )
We added a ProfileImage column to the User table
Could you listen for "ProfileImage" to be submitted in the json object and update the table with the string provided?
Cheers
quizzesscompleted does not update the database with the new value
Require add quiz & delete quiz endpoints for admins
Would it be possible to change the user/id/friends endpoint to return with just the UserID of the opposite user specified?
e.g
if user 85 is friends with 86, user/85/friends would respond with
[
{UserID:86},
{more},
{friend},
{objects}...
]
This prevents us doing an extra httprequest to prevent duplicating friend entries
Require an endpoint to add a new record to Blacklist table
Takes:
UserID int
BanReason string
Require a way to get a user's ban reason
Takes:
UserID
Response:
BanReason
Require an endpoint to lift a ban/remove record from Blacklist
Takes:
UserID