Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Latest commit

 

History

History
59 lines (55 loc) · 1.46 KB

ReadMe.md

File metadata and controls

59 lines (55 loc) · 1.46 KB

OptaPlanner AI with Play for Scala

This repository is attempt to port Quarkus demo to Scala with Play Framework

Develop

Run sbt run and give it a try:

curl -i -X POST http://localhost:9000/ \
    -H "Content-Type:application/json" \
    -d '{
        "timeslots":[
            {
                "dayOfWeek":"MONDAY",
                "startTime":"08:30:00",
                "endTime":"09:30:00"
            },
            {
                "dayOfWeek":"MONDAY",
                "startTime":"09:30:00",
                "endTime":"10:30:00"}
            ],
        "rooms":[
            {
                "name":"Room A"
            },
            {
                "name":"Room B"
            }
        ],
        "lessons":[
            {
                "id":1,
                "subject":"Math",
                "teacher":"A. Turing",
                "studentGroup":"9th grade"
            },
            {
                "id":2,
                "subject":"Chemistry",
                "teacher":"M. Curie",
                "studentGroup":"9th grade"
            },
            {
                "id":3,
                "subject":"French",
                "teacher":"M. Curie",
                "studentGroup":"10th grade"
            },
            {
                "id":4,
                "subject":"History",
                "teacher":"I. Jones",
                "studentGroup":"10th grade"
            }
        ]
    }'