Skip to content

Backend receives code submission with language #59

@jorisvilardell

Description

@jorisvilardell

Context

Implement the HTTP endpoint that receives code submissions from clients and stores them as pending jobs.

Tasks

  • POST /runendpoint accepts{ language: string, code: string }`
  • Validates that language is in supported_languages
  • Creates a Job with status: Pending
  • Returns job ID to client
  • Jobs are stored in shared state for tracking

Related Code

  • src/main.rs - run_job() handler
  • src/main.rs - `AppState.supported_languages

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions