Note: This not asking to make a complete web server; just to make this "callable" by a specific web server implementation.
Implement a UWAPI response option for the nova query command which fetches and prints some information stored in a database in a specific JSON format. This is dependent on the query system implementation, which will be used to fetch things from the database (and is a harder project).
This will allow UWAPI to fetch game information from nova in order to serve it to the GamesmanUni frontend (effectively making the games solved on nova playable with some additional frontend work).
Example
This project (including the --uwapi flag) should be hidden behind a "uwapi" feature flag.
$ nova query --uwapi "<position-string>"
{
"position": "<position-string>",
"children": [ ... ],
...
}
Recommended Courses (UC Berkeley)
If you can't tell whether this is out of your scope, we recommend the following experience:
Implement a UWAPI response option for the
nova querycommand which fetches and prints some information stored in a database in a specific JSON format. This is dependent on the query system implementation, which will be used to fetch things from the database (and is a harder project).This will allow UWAPI to fetch game information from
novain order to serve it to the GamesmanUni frontend (effectively making the games solved onnovaplayable with some additional frontend work).Example
This project (including the
--uwapiflag) should be hidden behind a "uwapi" feature flag.Recommended Courses (UC Berkeley)
If you can't tell whether this is out of your scope, we recommend the following experience: