code4romania / teacher-workout-backend

Teacher Workout backend (API for mobile apps & for the web client)
Mozilla Public License 2.0
8 stars 35 forks source link

[14] Save lessons #85

Open danielferecatu opened 10 months ago

danielferecatu commented 10 months ago

What does it fix?

WIP Issue https://github.com/code4romania/teacher-workout-backend/issues/14

Closes #XXX Moved form https://github.com/code4romania/teacher-workout-backend/pull/62

How has it been tested?

Ran tests with dotnet test:

Passed! - Failed: 0, Passed: 2, Skipped: 0, Total: 2, Duration: 247 ms - TeacherWorkout.Specs.dll (net8.0)

Via UI:

query AllLessons {
  lessons {
    edges {
      node {
        id
        title
      }
    }
  }
}

mutation LessonSave($input: LessonSaveInput!) {
    lessonSave(input: $input) {
        lesson {
            title
        }
    }
}

{
  "input": {
    "lessonId": 0
  }
}

Te rog sa verifici daca mai sunt necesare modificai in fisierul de statup privind user, ca am modificarile in fisier.

danielferecatu commented 10 months ago

The implementation is not complete. Do not merge yet.