apluslms / aplus-manual

Download course templates to start building of a new course
MIT License
5 stars 28 forks source link

Add example exercises using different mooc-grader view types #58

Open markkuriekkinen opened 2 years ago

markkuriekkinen commented 2 years ago

The example exercises in the manual focus on file upload exercises and questionnaires. There are also other view types in the mooc-grader. There should be some examples of those in the manual too. For example, view_type access.types.stdasync.acceptPost

https://github.com/apluslms/mooc-grader/tree/master/courses#accesstypesstdasyncacceptpost

RST:

.. submit:: newkey 10
  :config: exercises/someexercise/config.yaml

config.yaml

---
title: Example acceptPost async grading from a text input
view_type: access.types.stdasync.acceptPost
fields:
  - name: answer
    title: Write here
    more: More instructions
    required: true

container:
  image: ...
  mount: exercises/someexercise
  cmd: /exercise/run.sh