Giter VIP home page Giter VIP logo

Comments (4)

cezarykluczynski avatar cezarykluczynski commented on May 24, 2024

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.

mxdxgx avatar mxdxgx commented on May 24, 2024

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.

cezarykluczynski avatar cezarykluczynski commented on May 24, 2024

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.

cezarykluczynski avatar cezarykluczynski commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.