Giter VIP home page Giter VIP logo

paradigms-final-project's Introduction

The API works by parsing the data from the URL and creating different ways to access it, then having those different access methods get called by the main class and give data to the user from the server.

Run the server using the command: /afs/nd.edu/user14/csesoft/2017-fall/anaconda3/bin/python3 main.py

The webserver runs on port 52047.

This webserver connects to the database and provides information about the pokemon on it. In order to get all information about a pokemon, go to student04.cse.nd.edu:52047/pokemon/$POKEMON_NAME. In order to get a specific stat for that pokemon, go to student04.cse.nd.edu:52047/pokemon/POKEMON_NAME/STAT. In order to find breedable pokemon, go to student04.cse.nd.edu:52047/breedable/$POKEMON_NAME. In order to get information about all pokemon, go to student04.cse.nd.edu:52047/pokemon. In order to post a custom pokemon, send a post request to student04.cse.nd.edu:52047/pokemon. In order to delete a custom pokemon, send a delete request to student04.cse.nd.edu:52047/pokemon/$POKEMON_NAME. Lastly, in order to get a recommendation to fight against a pokemon, go to student04.cse.nd.edu:52047/recommend/$POKEMON_NAME.

The json RESTful table is shown below and also in the webserver/json_specs.md file.

JSON RESTful:

Command Resource Input Example Output Example
GET /pokemon/ {'result':'success', 'pokemon': [{'Dex #': '#001', ...}...]}
GET /pokemon/:id {'result':'success', 'pokemon': [{'Dex #': '#001', ...}}
POST /pokemon/:id {'pokemon': :id} {'result': 'success'}
DELETE /pokemon/:id {'result': 'success'}
GET /breedable/:id {'result': 'success', 'breed_list': ['#001 Bulbasaur'...]}
GET /pokemon/:id/:stat {'result': 'success', 'stat': [['#212', 'Scizor', 100']]}
GET /recommend/:id {'result': 'success', 'recommendation': 'Psyduck'}

The client is located at http://student04.cse.nd.edu/jbonadon/GK03gwaD/final_project/client_1/

Use the dropdown menu to select a feature, then hit 'Go!' The client will either prompt the user to enter more information i.e. a pokemon name, or will display the results. In order to get the results of an entered name, hit the 'Find!' button under the input box(es).

paradigms-final-project's People

Contributors

bonadawg avatar chrisheneghan avatar

Watchers

James Cloos 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.