Skip to content

marcusaurelys/animorank-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animorank API

Animorank API is an experimental code execution service designed to facilitate the remote execution of C code. This is build for the Animorank project.

Usage

Endpoint

POST /run

Request Body

The Request Body should be a JSON object with the following fields.

{
  "language": "c", 
  "code": "/* Your C code string goes here */",
  "stdin": ["/* Array of inputs to standard input */"]
}

Response

Example Success Response

{
  "results": [
    {
      "status": "successfully compiled and run",
      "stdout": "/* Standard output from the executed program */"
    }
  ]
}

Example Error Response

{
  "results": [
    {
      "status": "time limit exceeded",
      "stdout": ""
    }
  ]
}

Notes

  • Currently, C is the only supported programming language.
  • The stdin field accepts an array of inputs, which are executed separately from each other, simulating a single test case.
  • Additional support for other languages may be added in the future.

About

Experimental Implementation for a simple code execution service and api for Animorank

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors