• Resolved bellarose143

    (@bellarose143)


    Hello,

    I have been working on a mobile app for my client’s site. We use the LLMS API to get Lesson content and Student Enrollments which has gone great. Well made API. The issue, is that you are not able to retrieve quizzes. A lesson can say if it has a quiz, and give you its ID but not the quiz content. I find this weird for 2 reasons. You can export a course, which gives you everything inside, and the quizzes are in there so its already within capabilities to provide that structured information. The other reason is that when you look at the links within your lesson response, you get a part that says to use the following link/route to get the attached quiz. But if you go to that route, you get a 404. The snippet below is from the API docs of retrieving a lesson and shows what I mean:
    /wp-json/llms/v1/quizzes/432

    Is there really no way to simply do a GET request to see the content of a quiz? If so, is this something being worked on? If not, then why does the API docs give you a route for them?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nick Mariano

    (@reddotinmotion)

    Hi @bellarose143,

    We have not yet implemented a REST API for quizzes.

    You are free to submit a feature request for the quiz REST API. The problem with feature requests is that the decision to implement it largely depends on the number of votes (or the demand) for that particular feature. In this case, we cannot provide an estimated timeline for when a feature will be developed and released. As a result, if you need this feature right away, we recommend any of the following actions:

    • implementing it yourself as a custom add-on
    • hiring a developer who will implement it for you
    • by submitting a pull request to LifterLMS in Github

    You may also consider using the WordPress REST API to retrieve llms_question and llms_quiz post types. These question and the quiz is associated to each other in the wp_postmeta table via the _llms_parent_id metakey.

    Plugin Support Nick Mariano

    (@reddotinmotion)

    Hi @bellarose143,

    As we haven’t had any response in over a week I am going to mark this thread as resolved. Please reopen or post a new thread if you require further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.