Giter Site home page Giter Site logo

m-davies / arma-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.49 MB

A Java SpringBoot API for modded Arma 3 classnames and data

Home Page: https://unofficial-arma-api.herokuapp.com

License: GNU General Public License v3.0

Java 54.34% SQF 40.28% HTML 4.59% CSS 0.60% Procfile 0.19%

arma-api's People

Contributors

dependabot[bot] avatar m-davies avatar

Watchers

 avatar  avatar

arma-api's Issues

Mongo atlas open to all IP's

The mongo cloud database that the main application uses is open to all IP's. For security reasons, this is obviously a problem. It should be possible to devise a CIDR notation string from the IP's that the main application uses or alternatively invest in a static IP address using a heroku addon. Once we have done this, disabling open access should be possible.

Add a unfiltered route

In this route, classes will be displayed as they are in the config editor, not filtered by name and such. This ensures that all the classes properties are present and makes it easier to search for people who are familiar with config entries

Add filter options to search/ endpoint

This will allow search results to be a lot more condensed and provide more functionality to users wishing to increase the flexibility of their queries

Scrape images from arma install

Currently, the image attr just displays a relative path to an image on arma 3, it would be preferable if we could extract said image and store it somewhere so it can be viewed in the arsenal. This would likely require an addition to the Updater script so it retrieves and uploads the file to some location (probably a cloud storage location such as S3)

Add endpoint to get mod info

A lot of the mods are keywords and don't describe where the mod comes from or anything. It would be useful to have an endpoint that references that

Add pagination support

Classes endpoint can take a while to load from a remote source, we should add pagination to limit results on a query by query basis to speed up response times

SQF Script always appends a , to the end of the JSON array output

Describe the bug
The SQF to JSON extraction script always appends a comma (,) to the end of the array, making the array invalid and requiring manual intervention.

Expected behavior
There is no comma on the last element of the JSON array

Additional context
This is the line that formats the joined classes string into a string representation of an array. Perhaps it could be removed here?

_JSON = "[" + endl + "  " + _joinedClasses + endl + "]" + endl;

Pretty print output of endpoints

Output is an ugly one liner json array and could be prettier. Options include usig Gson or a different Json library, totally up the fixer on which one to use

Updater can't find the data files and causes the script to clean the prod dbs

Because I deleted them ๐Ÿคฆ I'll fix this tonight

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: java.nio.file.NoSuchFileException: /app/src/main/resources/data
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:432)
        at java.base/java.nio.file.Files.newDirectoryStream(Files.java:472)
        at java.base/java.nio.file.Files.list(Files.java:3699)
        at com.api.main.Updater.update(Updater.java:77)
        at com.api.main.Executer.main(Executer.java:63)

Add configs for CDLCs

Base DLC's like jets and tanks are already there, but it would be useful to have the configs from western sahara and the other CDLC's related to modern warfare too

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.