GithubHelp home page GithubHelp logo

dfcodeapi's Introduction

DiamondFire Code API

This is an API to search through a DiamondFire action dump.

API Documentation

Overview

This API provides access to a collection of actions, codeblocks, and events. It supports retrieving all items in each category or searching within them based on specific criteria.

Endpoints

Root (/)

  • Method: GET
  • Description: Retrieves the entire JSON data.
  • Response:
    • 200 OK: JSON data of the entire action dump.

Codeblocks

List Codeblocks (/codeblocks)

  • Method: GET
  • Description: Retrieves all codeblocks.
  • Response:
    • 200 OK: JSON data of all codeblocks.

Search Codeblocks (/codeblocks/search)

  • Method: GET
  • Description: Searches within codeblocks based on a query.
  • Query Parameters:
    • q: The search query string.
  • Response:
    • 200 OK: JSON data of matching codeblocks.

Events

List Events (/events)

  • Method: GET
  • Description: Retrieves all events.
  • Response:
    • 200 OK: JSON data of all events.

Search Events (/events/search)

  • Method: GET
  • Description: Searches within events based on various criteria.
  • Query Parameters:
    • q: The search query string.
    • requiredrank: Filters events by the required rank.
  • Response:
    • 200 OK: JSON data of matching events.

Actions

List Actions (/actions)

  • Method: GET
  • Description: Retrieves all actions.
  • Response:
    • 200 OK: JSON data of all actions.

Search Actions (/actions/search)

  • Method: GET
  • Description: Searches within actions based on various criteria.
  • Query Parameters:
    • q: The search query string.
    • requiredrank: Filters actions by the required rank.
    • workswith: Filters actions by compatibility.
  • Response:
    • 200 OK: JSON data of matching actions.

Functionality Details

  • jsonResponse(data): Returns a JSON formatted response containing the data.
  • Search functionality is provided using ActionDump.search(), which filters the data based on specified fields and query parameters.

Search Logic

  • Codeblocks: Searches by name and item description.
  • Events: Searches by name, aliases, icon name, icon description, and optional rank.
  • Actions: Searches by name, icon name, aliases, icon description, and filters by rank and compatibility attributes.

dfcodeapi's People

Contributors

deltandy123 avatar

Watchers

 avatar

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.