aloc-endpoints icon indicating copy to clipboard operation
aloc-endpoints copied to clipboard

Empty question response

Open mathiasgodwin opened this issue 3 years ago • 6 comments

They have been empty data response for some of the subject and it's never noted in the documentation.

take a look at this response:

  Response: #####################
  --------------------------------------------------

{subject: economics, year: 2005, type: utme} {"subject":"economics","status":200,"data":[]}

mathiasgodwin avatar Nov 14 '21 20:11 mathiasgodwin

@mathiasgodwin I will review and revert soon

Seunope avatar Nov 15 '21 07:11 Seunope

Screenshot 2021-11-17 at 19 53 02

Probably the URL was not structured well. The URL below gave me the response above

https://questions.aloc.ng/v2/q?subject=economics&year=2005&type=utme

Seunope avatar Nov 17 '21 18:11 Seunope

Screenshot 2021-11-17 at 19 53 02

Probably the URL was not structured well. The URL below gave me the response above

https://questions.aloc.ng/v2/q?subject=economics&year=2005&type=utme

Well, I can't really say but this is not the only subject with empty response and besides I tried this in 2 different programming languages and they all returned this empty result. I can share the code that produce such if you want.

Plus: some return questions not upto 40, if all this were noted in the documentation, we consumers would have prepared our code base to deal with such case. It has really been a great thing consuming your APIs but would be greater with those things fixed. Thanks

mathiasgodwin avatar Nov 18 '21 19:11 mathiasgodwin

Please share the code with me. I will also look at the "40 questions" bug

Seunope avatar Nov 22 '21 18:11 Seunope

Please share the code with me. I will also look at the "40 questions" bug

Alright, should I send it to the email on your git profile?

mathiasgodwin avatar Nov 23 '21 17:11 mathiasgodwin

Please share the code with me. I will also look at the "40 questions" bug

Alright, should I send it to the email on your git profile?

Yes you can.

Seunope avatar Nov 23 '21 19:11 Seunope