hiper-backend
  1. administer
hiper-backend
  • API Conventions
  • user
    • before login
      • login
      • register a user
      • request verification code
      • reset email
      • reset password
    • search users
      GET
    • get the user
      GET
    • get current user
      GET
    • update current user
      PATCH
  • game
    • create
      • create a game
    • administer
      • get settings related info about the game
      • update the game's game logic
      • update the game's match detail
    • get games
  • contest
    • create
      • create a contest
    • administer
      • get settings related info about the contest
      • update the registration password
    • get contests
    • register for contest
    • exit contest
  • permission
    • grant creation permission
    • revoke creation permission
  • base contest
    • administer
      • delete the game
        DELETE
      • add admin
        POST
      • relinquish admin
        DELETE
      • update contest script
        PUT
      • update metadata
        PATCH
      • add a sdk
        POST
      • get a sdk
        GET
      • delete a sdk
        DELETE
      • update a sdk
        PATCH
      • update states
        PATCH
    • get the game
      GET
    • get AIs
      GET
    • commit an AI
      POST
    • get the ai
      GET
    • download the AI
      GET
    • edit ai note
      PUT
    • get contestants
      GET
    • assign an AI
      PUT
    • get current contestant
      GET
    • revoke the assigned AI
      DELETE
    • get matches
      GET
    • get a match
      GET
    • get sdks
      GET
  1. administer

add a sdk

Developing
POST
/games/{id}/sdks

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Path Params
id
integer 
required
Example:
1
Header Params
Authorization
string 
optional
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE3MDM3MzM1NjQsImlzcyI6Imp3dCJ9.Xo_0epX1XR_SQ8_kPsEDNzUJ4Jyuns0cTdSJJQiaG8o
Body Params multipart/form-data
name
string 
required
Example:
a
description
string 
required
Example:
a
sdk
file 
required
Example:
cmMtdXBsb2FkLTE3MDM2NDcxMzU4ODEtNQ==/interlude_39.png
build_ai_dockerfile
string 
required
Example:
a
run_ai_dockerfile
string 
required
Example:
a

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/games/1/sdks' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE3MDM3MzM1NjQsImlzcyI6Imp3dCJ9.Xo_0epX1XR_SQ8_kPsEDNzUJ4Jyuns0cTdSJJQiaG8o' \
--form 'name="a"' \
--form 'description="a"' \
--form 'sdk=@"cmMtdXBsb2FkLTE3MDM2NDcxMzU4ODEtNQ==/interlude_39.png"' \
--form 'build_ai_dockerfile="a"' \
--form 'run_ai_dockerfile="a"'

Responses

🟢200OK
application/json
Body
id
integer 
required
name
string 
required
readme
string 
required
markdown
build_ai
object 
optional
dockerfile
string 
required
status
object (task_status) 
required
run_ai
object 
optional
dockerfile
string 
required
status
object (task_status) 
required
Example
{
    "id": 0,
    "name": "string",
    "readme": "string",
    "build_ai": {
        "dockerfile": "string",
        "status": {
            "state": "pending",
            "msg": "string"
        }
    },
    "run_ai": {
        "dockerfile": "string",
        "status": {
            "state": "pending",
            "msg": "string"
        }
    }
}
🟠422Unprocessable Content
Previous
update metadata
Next
get a sdk
Built with