Closed robkooper closed 5 years ago
We should first merge #20 into this pull request to simplify the code base (or it can be merged into master after wards).
Could I get instructions on how to run this locally?
I seem to be unable to connect to betydb and not sure what to change.
Did you see the readme on the openapi branch?
David LeBauer Director of Data Sciences Arizona Experiment Station THE UNIVERSITY OF ARIZONA
Bioscience Research Labs, 207 1230 N Cherry Ave | Tucson, AZ 85721 Office: 520-621-4381 dlebauer@email.arizona.edu
(sent from my phone - please pardon brevity and typos)
From: Todd Nicholson notifications@github.com Sent: Friday, May 3, 2019 6:18 PM To: terraref/brapi Cc: LeBauer, David Shaner - (dlebauer); Review requested Subject: Re: [terraref/brapi] brapi hackathon (move to openapi from swagger 2.0) (#21)
I seem to be unable to connect to betydb and not sure what to change.
— You are receiving this because your review was requested. Reply to this email directly, view it on GitHubhttps://github.com/terraref/brapi/pull/21#issuecomment-489154422, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AADRPZ3EHCQEZFULWDE2D4DPTRQVLANCNFSM4HJ6MNSA.
@dlebauer thanks i was not using the right command to start up bety
looks good, marking both approved.
This contains the work from the hackathon. The main part is that BRAPI switched to openapi 3.0 and the code generator no longer works with this. This now uses the connexion libraries to use the brapi.yaml file to create the then endpoints automagically.
To implement new endpoints you will need to create a file in
/api/
with the name of the endpoint, for example/calls/
is now find in /api/calls.py. For GET function without a name the function in the file has to be calledsearch()
for a GET with an ID it is calledget()
. See files in /api/ for more details.