Code Monkey home page Code Monkey logo

sedna's Introduction

Hello.

Developed application in the attachment.

To start, download the application to the root directory virtual or local server.

In the .env file, write the database connection settings (DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD);

For update dependency run comand php composer update

Run comand "php artisan migrate" or import of tables with sedna sql.

Run comand php artisan serve or change {your-domain} on {your-domain}/public/ in methods

Methods Api:

Register POST {your-domain}/api/register

required parameters name,email,password,password_confirmation

Example post parametersname=test_user&[email protected]&password=11111111&password_confirmation=11111111

Logout POST {your-domain}/api/logout/{id}

required parameters id user

Example url for POST {your-domain}/api/logout/1

Login POST {your-domain}/public/api/login

required parameters email,password

Example post parameters[email protected]&password

Show all films GET {your-domain}/api/movies

Show filmb by id GET {your-domain}/api/movies/{id}

Show film by parameter GET {your-domain}/api/movies/search/{parameter}

parameter is name film or name actor

Example url for POST {your-domain}/api/movies/search/Rokky

Create film POST {your-domain}/api/movies

required parameters id_user,name_film,date_created,actor,format,token

Example post parameters id_user=1&name_film=Rokky2&date_created=2010-03-03&format=DVD&actor[]=1&actor[]=2&token=01J75shwLQouLzmXiGqBPk5suVw4ljP7HHjxSfuJB4UGLzwTGW56NAdopnOI

Edit film PATCH {your-domain}/api/movies/{id_film}

required parameters id_film,name_film,date_created,actor,format,token

Example patch parameters name_film=Rokky5&date_created=2010-03-03&format=DVD&actor[]=1&actor[]=2&token=01J75shwLQouLzmXiGqBPk5suVw4ljP7HHjxSfuJB4UGLzwTGW56NAdopnOI

Delete film Delete {your-domain}/api/movies/{id_film}

required parameters id_user,token,id_film

Example patch parameters user_id=1&token=01J75shwLQouLzmXiGqBPk5suVw4ljP7HHjxSfuJB4UGLzwTGW56NAdopnOI

Show all actor GET {your-domain}/api/actor

Create actor POST {your-domain}/api/actor

required parameters firs_name,last_name

Example patch parameters firs_name=first_name&last_name=last_name

sedna's People

Contributors

zhirniy avatar

Watchers

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