View Single Post
  #37   Spotlight this post!  
Unread 29-04-2016, 10:54
TomAwezome TomAwezome is offline
Robot Code Supervisor
FRC #4534 (Wired Wizards)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: United States
Posts: 5
TomAwezome is an unknown quantity at this point
Post ORB back-end API public release!

As ORB's back-end nears completion, we are releasing access to it! This is what the currently accessible front-end uses to get the info. There are just a small few of endpoints that are not implemented, and as such will not be listed, but in the future they will be added. Otherwise, everything else is currently functioning as intended! (A side note, as mentioned above, scoring for anything that is not a qualifying match is currently wrong as time has not been available to carve the algorithm for the different scoring playoffs uses, but before World's playoffs start we will have it ready.)

http://orb.scoutfrc.io/


ORB API Endpoints:

GET /list/<eventcode> — Returns a list of teams at event identified by eventcode.

GET /team/<number> — Returns a basic JSON object about that team.

GET /team/<number>/defense — Returns the entire defense skill lineup for that team.

GET /team/<number>/defense/:defensenumber — Returns the defense skill for that team on defense X.

GET /team/<number>/goals/high — Gets a teams skill at a high goal in teleop/auto.

GET /team/<number>/goals/low — Gets a team's skill at a low goal in teleop/auto.

GET /team/<number>/scale/ — Gets a team's skill as a percent decimal (0 to 1) at scaling.

GET /team/<number>/challenge/ — Gets a team's skill as a percent decimal (0 to 1) at challenging.

GET /team/<number>/score — Returns the team’s score for rankings.

GET /work/match/<eventcode>/<matchidentifier>/ — Calculates result of a match by comparing teams’ scores, and ranking alliance scores, returns two values, first is red's score, second is blue's score.

GET /work/defense/<eventcode>/<matchidentifier>/ — Calculates the optimal defense selection for both alliances, returns array with arrays for red and blue, arrays in those: first array is defenses in defense categories they are best at, second is array for defenses in defense categories they are worst at.

Edit: event code and match identifier formats are the same as TBA's.

Last edited by TomAwezome : 29-04-2016 at 11:08. Reason: left out info for identifiers
Reply With Quote