Comments (4)
Hi Maxime,
It would be great if you gonna be willing to mantain a Python client for STAPI. But ff you just want to grab data for your project, that's OK too.
The best approach here would be to download ZIP containing either Swagger specs or SOAP contracts from API documentaion page. Then you can try to generate scaffold Python client from it. swagger-codegen is a way to go for Swagger. For SOAP, probably ZSI can be used, but I'm by far not an expert on Python.
I think that, before attempting to write client from scratch, you should at least try to generate client code, then write a minimal wrapper around it.
As for the unit tests, I won't have resources to actively participate in the Python client development, so won't be telling anyone how to write their code. For generated code, however, I wouldn't write unit tests, but rather a integration tests, to check if you can connect to every endpoint.
If you have any problem generating the code, please don't hesitate to report it (Java clients generates fine).
from stapi.
Ok, I'll try to set it up locally ti grab the data first, it's a spring boot app? I know next to nothing about java spring. Do I have to generate some code via gradle before running the server?
Sent from my Huawei Nexus 6P using FastHub
from stapi.
Yes, it's based on Spring Boot.
If you want to run it locally, follow the steps from here. All that's necessary to run STAPI locally is described there. Code generation is described there too. I suggest importing project into IntelliJ IDEA - that's what I'm using. Other IDE's were not tested.
Do git pull too. I've just updated missing configuration properties. Documentation on wiki was also put up to date.
from stapi.
One other thing: please stick to the tagged released (I've just released v0.0.1). Commits between tagged releases will not guarantee backward compatibility of database schema migrations.
from stapi.
Related Issues (17)
- 500 error using API HOT 2
- Calls returning 500 HOT 2
- Official go client HOT 4
- Extremely incomplete database HOT 2
- Not functioning as of 23.12.2020 unfortunately HOT 2
- Many suspect/erroneous Element database entries HOT 1
- ApiException without details HOT 3
- C# Client in net7.0 HOT 2
- Swagger Editor Issues HOT 5
- Star Trek: Strange New Worlds Season 2 episodes missing
- OpenAPI is invalid
- How do I use this without Java? HOT 3
- Problem in searching for species
- R package as client HOT 13
- Would like to see a Node.js module
- http security issues HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stapi.