Code Monkey home page Code Monkey logo

myapi's Introduction

Backend часть

Представляет из себя Node.js + Express + Mongo.DB(отдельно docker container) сервер развернуый в Docker
Cсылка на сам развернутый контейнер https://react24.site:2222/api

Ссылка на использующий АПИ проект https://react24.site/react-redux

Для POST запроса кроме login и register нужен Token который генерируется на сервере и сохраняется у Вас в LocalStorage

В этом проекте я использовал следующие блиотеки npm :
+ express
+ express-jwt
+ mongoose
+ passport-local-mongoose

Варианты запроса:
+Для получения всех категорий и обьектов в них GET: https://react24.site:2222/api

+Для получения всех слайдов на домашней странице GET: https://react24.site:2222/api/title-slider


+Для LogIn POST: https://react24.site:2222/api/users/login

+Для Register POST: https://react24.site:2222/api/users


+Для delete One Title Slider POST: https://react24.site:2222/api/title-slider/${idDeletedSlider}?_method=DELETE

+Для add One New Title Slider POST: https://react24.site:2222/api/title-slider/new

+Для edit Title Slider POST: https://react24.site:2222/api/title-slider/${_id}?_method=PUT


+Для add One New Category POST: https://react24.site:2222/api/category/new

+Для del One Category POST: https://react24.site:2222/api/category/${categId}?_method=DELETE

+Для edit One Category POST: https://react24.site:2222/api/category/${categId}?_method=PUT

+Для add One New Item POST: https://react24.site:2222/api/category/${categId}/item/new
+Для update One Item POST: https://react24.site:2222/api/category/${categId}/item/${itemId}?_method=PUT

+Для del One Item POST: https://react24.site:2222/api/category/${categId}/item/${itemId}?_method=DELETE

+Для add One New Image POST: https://react24.site:2222/api/category/${categId}/item/${itemId}/im/new

+Для del One Image POST: https://react24.site:2222/api/category/${categId}/item/${itemId}/im/${imageId}?_method=DELETE

myapi's People

Contributors

malinichev avatar

Watchers

 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.