Giter Club home page Giter Club logo

Comments (8)

kevgk avatar kevgk commented on August 12, 2024

Hi. I haven't been working on the api for quiet a while now. I dont really have a usecase for it anymore personally, but if there is interest I could think about it.

from leya.

Pillowg1rl avatar Pillowg1rl commented on August 12, 2024

I thinks there is definitely a usege for youre code :)
Mostly for little Programms who want to add a database connection to their Script.
But i read, that the improv3d api (this api's basic) was very unsave and easy to hack...

from leya.

kevgk avatar kevgk commented on August 12, 2024

This is the improv3d api, I just renamed it.

I wouldn't say that it's unsafe to use or easy to hack. You can add authentication-keys to the config, which limits access to users with a key. You can add as many keys as you want (eg. one per user).

You can also adjust access to the api functions on a global level and override them with key specific ones (kind of like roles... user, admin, etc.)

More about this here https://github.com/kevgk/Leya/wiki/Authentication-Keys

So if you just want to read from the db for example, only allow read.

from leya.

Pillowg1rl avatar Pillowg1rl commented on August 12, 2024

But isn't it unsafe, that the file with the config of the Database lays in clear-text onto the server ? or do I have the wrong understanding of this ? :)

from leya.

kevgk avatar kevgk commented on August 12, 2024

The config file is a php file, php parses it and makes the variables accessable to the api, but never outputs its content.

Let's say you try to open the config.php with your browser, you'll see nothing. The config.php executed, but it didn't output anything.

from leya.

Pillowg1rl avatar Pillowg1rl commented on August 12, 2024

ah okey. thats perfect :) I've worked like 5 Years ago with the API. But I can't remember the commands, if it's with " or without and so on. If you have the wiki file or something like this it would be enought for me and I could work again with the API :)

from leya.

kevgk avatar kevgk commented on August 12, 2024

In the readme you have every command listed with its parameters. https://github.com/kevgk/Leya
And for a very few commands I created a wiki, which is far from finished. https://github.com/kevgk/Leya/wiki/leya.get

from leya.

kevgk avatar kevgk commented on August 12, 2024

I guess your questions have been answered, so I'm closing the issue. If you have more questions, feel free to open a new issue.

from leya.

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.