Git Product home page Git Product logo

ideas_sharing_portal_back's Introduction

Ссылка на второй репозиторий (frontend) - https://github.com/interhub/webapp

API

User

/user/get_user

return

    {
        "result": true, 
        "data": {
                  "user_id": 1, 
                  "first_name": "Алекандр", 
                  "second_name": "Сергеевич", 
                  "last_name": "Иванец", 
                  "image": "картинка", 
                  "city": "Ярославль", 
                  "department": "Управление трехмерного моделирование", 
                  "position": ".net разработчик", 
                  "office_phone": "89052668317", 
                  "email": "[email protected]", 
                  "achievements": [
                        {
                          "id": 1, 
                          "name": "Первопроходец", 
                          "description": "Поздравляю, теперь ты первопроходец! С освоением ключевого функционала портала!", 
                          "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhE"
                        }
                  ]
        }
}

/idea/get_group_by_tag

в body {tag: "tagName}" return

    {
      "result": true, 
      "data": [
          {
            'group_id': 1, 
            'group_title': 'Группа первая', 
            'ideas': [
                {
                   'name': 'Социальная сеть инвестора', 
                   'id': 1, 
                   'author_id': 1, 
                   'text': 'Предлагаю добавить в наше мобильное приложение раздел, где пользователи могут общаться, обмениваться сообщениями по инвестициям. Некоторая социальная сеть для инвесторов', 
                   'tags': ['cоциальная сеть', 'общение']
                }
              ]
            }
        ]
          
    }

/tag/get_tags_rating

return

    {
      "result": true, 
      "tags": [{"name": "общение", "rating": 4}]
    }

/user/get_users_rating

return

    {
      "result": true, 
      "users": [{"name": "Александр", "id": 1, "rating": 3}]
    }

/user/get_top_groups

return

    {
      "result": true, 
      "groups": [{"name": "Группа 1", "id": 1, "rating": 232}]
    }

idea/get_top_ideas

{
  "result": true, 
  "data": 
    [
      {
        "name": "Больше зеркал у ксерокса", 
        "id": 2, 
        "author_id": 2, 
        "text": "Мне кажется у ксерокса не хватает зеркал. Нужно их установить, они позволят смотреть на себя пока идет печать и позволят оценивать обстановку со всех сторон)", 
        "tags": [], 
        "rating": 100500
      }
    ]
} 

/idea/add_idea_to_group

send

{
  "group_id": 1,
  "name": "Название идеи",
  "text": "Я хочу пожрать",
  "author_id": 2,
  "tags": ["еда"]
}

/idea/add_new_group

send

{
  "group_name": "Мы все хотим пожрать",
  "name": "Название идеи",
  "text": "Я хочу пожрать",
  "author_id": 2,
  "tags": ["еда"]
} 

/user/get_relevant_ideas

return

    {
      "result": true, 
      "groups": [
        {
          "name": "Группа 1",
          "id": 1,
          "rel_text": "Текст наиболее релевантной идеи из этой группы",
          "ideas": [
            {
              "name": "Название идеи",
              "id": 1,
              "author_id": 7,
              "text": "Текст идеи",
              "tags": ["музыка"],
              "rating": 22
            }
          ]
        }
      ],
      "tags": ["текст", "идея"]
    }

ideas_sharing_portal_back's People

Contributors

ivanetc avatar nealkafree 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.