Giter VIP home page Giter VIP logo

Comments (9)

MiniDigger avatar MiniDigger commented on August 15, 2024 1

mmmh, if its not possible to use swagger automatically, you can still write the swagger/opengraph file by hand, which still would be better than something you can do in markdown or smth. maybe I can look into getting that started after work

from xenfororesourcemanagerapi.

simpleauthority avatar simpleauthority commented on August 15, 2024 1

Now hosting an openapi definition which can be read by swaggerui. If desired, @md-5 could host a swagger UI static site and link to the openapi definition so people could reference it. For now, I have an example here: https://area51.jacobandersen.dev/docs/xfrm/0.2

(these docs will remain WIP but they have fairly good coverage as they are now)

from xenfororesourcemanagerapi.

md-5 avatar md-5 commented on August 15, 2024

Also the versions are sometimes null and sometimes empty string / array. Guess it depends on whether they've been set before or something.

from xenfororesourcemanagerapi.

simpleauthority avatar simpleauthority commented on August 15, 2024

Also the versions are sometimes null and sometimes empty string / array. Guess it depends on whether they've been set before or something.

Do you have an example of when it's an empty string? Empty array makes sense if there are none set at all, but if it's empty array and they are set then that's a bug.

Empty string may be a bug regardless but not sure.

from xenfororesourcemanagerapi.

simpleauthority avatar simpleauthority commented on August 15, 2024

Ah, indeed. It'll be null if never set before at all. [] (empty array) if set before and then unset.

Empty string, not sure why it would be that.

from xenfororesourcemanagerapi.

md-5 avatar md-5 commented on August 15, 2024

I think the native version is an empty string if set then unset (as its not an array)

from xenfororesourcemanagerapi.

simpleauthority avatar simpleauthority commented on August 15, 2024

Ah yeah. Okay, that all makes sense.

This just emphasizes even more that I need to write some docs, because even I'm getting confused LOL.

from xenfororesourcemanagerapi.

MiniDigger avatar MiniDigger commented on August 15, 2024

no clue about php land, but wouldn't it help to just throw up swagger and call it a day?
that can display all requests with their params, and provide sample responses and even a way to try out requests right in the browser.

from xenfororesourcemanagerapi.

simpleauthority avatar simpleauthority commented on August 15, 2024

no clue about php land, but wouldn't it help to just throw up swagger and call it a day?
that can display all requests with their params, and provide sample responses and even a way to try out requests right in the browser.

I have never used swagger honestly, is that something that can be integrated into this project being that there is no framework in use? (I wrote it all by hand, because it's a relatively trivial project.)

from xenfororesourcemanagerapi.

Related Issues (20)

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.