World Conquest Chronicles

World Conquest Chronicles

go-exercises-backend, v1.0-alpha.1

Back-end of the service for solving programming exercises.

Second alpha of the major version. Implement the solution model.

Change Log

  • RESTful API:
    • models:
      • solution model:
        • storing:
          • task ID;
          • code;
        • operations:
          • getting all solutions by a task ID;
          • getting a single solution by an ID;
          • creating.

Features

  • RESTful API:
    • models:
      • task model:
        • storing:
          • title;
          • description;
          • boilerplate code;
          • test cases:
            • all test cases are represented by a single string;
        • operations:
          • getting all tasks;
          • getting a single task by an ID;
          • creating;
          • updating by an ID;
          • deleting by an ID;
      • solution model:
        • storing:
          • task ID;
          • code;
        • operations:
          • getting all solutions by a task ID;
          • getting a single solution by an ID;
          • creating;
    • representing:
      • in a JSON:
        • payloads:
          • of requests;
          • of responses;
      • as a plain text:
        • errors;
  • server:
    • storing settings in environment variables;
    • supporting graceful shutdown;
    • logging:
      • logging requests;
      • logging errors;
    • panics:
      • recovering on panics;
      • logging of panics;
  • databases:
  • distributing:

Repository

Link: https://github.com/thewizardplusplus/go-exercises-backend/tree/v1.0-alpha.1.

Content: code.

License: MIT.

Screenshots

POST /api/v1/tasks/{taskID}/solutions/ route in the Postman tool

GET /api/v1/solutions/{id} route in the Postman tool