Code Monkey home page Code Monkey logo

Comments (1)

EvanDietzMorris avatar EvanDietzMorris commented on September 3, 2024

This is still an issue, but there are a few things that make it not a huge issue:

  1. Smart api uptime checks don't really check the content of responses, only a http response status code 200. This means default examples don't necessarily need to match a specific plater, as long as they work and return a valid 200 response, even if it's an empty result.

  2. Smart api uptime checks are skipped if there are required parameters for an endpoint but no example parameters are provided. This is currently how a couple of these endpoints are set up.

  3. Plater previously split some endpoints into two separate openapi specs (one for TRAPI and one for the rest) and we only exposed one of them to the smart api. This was undone recently but is still an option.

All that being said, since this issue was written, we implemented functionality that automatically uses an example edge from the test data file provided to generate the example query for the /query endpoint. Something like that could be done for the rest of the endpoints as well, and might be nice to have working examples for everything.

from plater.

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.