Skip to content

API: run code route #7

@alexis-langlet

Description

@alexis-langlet

For the API we want to implement the first route :
We will be using http and json schemas
POST /run
The json body should be like this :

{
  "language": "rust",
  "version": "1.0.0",
  "input": "<input>",
  "code": [
    {
      "filename": "main.rs",
      "content": "<code>"
    }
  ]
}

This should return :

{
  "status": 0,
  "stdin": "<stdin>",
  "stderr" : "<stderr>"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions