Skip to content

Cloud-Compiler-API/Cloud-Compiler-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Compiler API

Cloud Compiler API is the only free API which compiles the source code provided by the user in the cloud and returns the output.

Advantages:

  • supports 70+ programming languages
  • no authorization key is required

This is the minified documentation to get familiar with the API. For full documentation, please visit the original one.

Introduction

All API URLs listed in this documentation are relative to this. The Cloud Compiler API is a mostly RESTful API.

Known caveats:

  • all API calls should be made with HTTP GET or POST
  • you can consider any non-200 HTTP response code as an error
  • when you use the submissions method and status is not equal to 0 then you should wait 3-5 seconds and call the method again
  • error codes are not same as HTTP error codes

Usage

Get all supported languages

This endpoint retrieves all the programming languages that are supported by this API.

curl "http://cloudcompiler.esy.es/api/languages"
Get the language template

This endpoint retrieves the template for the specified language.

curl "http://cloudcompiler.esy.es/api/languages/template/13"
Get the language sample code

This endpoint retrieves the sample code for the specified language

curl "http://cloudcompiler.esy.es/api/languages/sample/13"
Create a new submission

This endpoint submits the source code to the API.

curl -H "Content-Type: application/json" \
-d '{
      "sourceCode": "# This is how submission looks like",
      "langId": 63,
      "stdin": "sample input",
      "timeLimit": 1
    }' \
-X POST \
'http://cloudcompiler.esy.es/api/submissions/'
Get the submission status

This endpoint fetches the submission status.

curl "http://cloudcompiler.esy.es/api/submissions/FrnO2h"

Table of contents in full documentation

About

API for compiling source code in the cloud (Inspired by Sphere Engine, scraped from Ideone)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages