Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // запросы данных
- // /profile
- // request: getProfileInfo()
- {
- "accessToken": 0,
- "action": "getProfileInfo",
- }
- // response:
- {
- "status": 200,
- "data": {
- "mySkills": [
- {"id": 0, "industry": "IT", "name": "Pyton"},
- {"id": 1, "industry": "IT", "name": "MATLAB"},
- ],
- "sticks": [
- {"id": 0, "place": "Morgan Stanley", "progressType": 0, "rank": "Senior Quantitive Trader"},
- {"id": 1, "place": "Apple", "progressType": 6},
- ],
- "education": [
- ],
- "experience": [
- {
- "id": 0,
- "pdfUrl": "ya.ru/17",
- "location": "MSK RU",
- "company": "MSU, Physics dept",
- "role": "senior researcher",
- "description": "Project discussions with the customer (Quantum Center, NPO Refract,",
- "salary": 10000,
- "period": [1483232461],
- "comments": "comments",
- },{
- "id": 1,
- "pdfUrl": "ya.ru/18",
- "location": "Kishinev MD",
- "company": "Univercity of Kishinev",
- "role": "Professor",
- "description": "Project discussions with the customer (Quantum Center, NPO Refract,",
- "salary": 10000,
- "period": [1483232460, 1483232461],
- "comments": "comments",
- }
- ],
- "awards": [
- {
- "title": "Золотой NULL",
- "description": "Очень тяжелый NULL",
- "date": 1483232461,
- }
- ],
- "userInfo": {
- "id": "lxGN26fW2X",
- "firstName": "Дмитрий",
- "lastName": "Ерошенко",
- "industry": "Information Technology and Services",
- "pictureUrl": "https://media.licdn.com/mpr/mprx/0__B9",
- "currentRole": "Director",
- "birthDate": 1483232461,
- "location": {
- "country": {
- "code": "ru"
- },
- "name": "Moscow, Russian Federation"
- },
- }
- }
- }
- /*// /paths
- // request: getGraph()
- {
- "accessToken": 0,
- "action": "getGraph",
- "industry": 0
- }
- // response:
- {
- "status": 200,
- "data": {
- "professions": [
- {"id": 0, "name": "MAR", "url": "mar", "fullName": "Marketing Somebody"},
- {"id": 1, "name": "RDS", "url": "rds", "fullName": "Researcher data science"},
- ],
- "paths": {
- "Fastest": {
- // описание ребер графа
- },
- "Easiest": {
- // описание ребер графа
- },
- "Popular": {
- // описание ребер графа
- },
- },
- "industries": [
- {"id": 0, "name": "IT"},
- {"id": 1, "name": "GOV"},
- {"id": 2, "name": "Show"},
- ]
- }
- }
- // /profession/*id
- // request: getPosition()
- {
- "accessToken": 0,
- "action": "getPosition",
- "id": 0,
- }
- // response:
- {
- "status": 200,
- "requestedParams": {
- "id": 0,
- },
- "data": {
- "essentialSkills": [
- {"id": 1, "name": "Machine learning", "selected": false},
- {"id": 2, "name": "Quantitative trading", "selected": false},
- ]
- }
- }
- */
- // /goals
- // request: getGoals()
- {
- "accessToken": 0,
- "action": "getGoals",
- }
- // response:
- {
- "status": 200,
- "data": {
- "career": [
- {"id":0, "place": "California", "rank": "CEO Apple", "industry": "IT", "term": 800, "completed": 94},
- {"id":1, "place": "Home", "rank": "Guitarist", "industry": "SHOW", "term": 1200, "completed": 54},
- ],
- "education": [
- {"id":0, "name": "Python for Everybody", "industry": "IT", "term": 400, "completed": 54},
- ]
- }
- }
- // /goals/*id
- // request: getGoalPath()
- {
- "accessToken": 0,
- "action": "getGoalPath",
- "id": 0
- }
- // response:
- {
- "status": 200,
- "requestedParams": {
- "id": 0,
- },
- "data": {
- "path": [
- {
- "id": 0, // пространство id единое для path и stages
- "name": "Portfolio manager",
- "completed": false,
- "stages": [
- {
- "id": 1,
- "completed": false,
- "text": "Min 5 years of relevant Hedge Fund industry experience. "
- }
- ]
- },{
- "id": 2,
- "name": "Senior quant trader",
- "completed": false,
- "stages": [
- {
- "id": 3,
- "completed": false,
- "text": "2+ years experience in algorithms development, backtesting and implementation"
- }
- ]
- },
- ],
- "currentPosition": {
- "name": "Portfolio manager",
- },
- "courses": [
- {"id": 0, "provider": "QuantStart.com", "type": 0, "text": "Check out deep learning application for time series analysis"},
- {"id": 1, "provider": "EDU", "type": 1, "text": "Upgrade your skills 0"},
- ]
- }
- }
- // /goals/*id
- // "request": getStageCourses()
- {
- "accessToken": 0,
- "action": "getStageCourses",
- "goalId": 0,
- "stageId": 0
- }
- // "response":
- {
- "status": 200,
- "requestedParams": {
- "goalId": 0,
- "stageId": 0
- },
- "data": {
- "courses": [
- {"id": 0, "provider": "QuantStart.com", "price": 700, "text": "Check out deep learning application for time series analysis"},
- {"id": 1, "provider": "EDU", "price": 701, "text": "Upgrade your skills 0"},
- ]
- }
- }
- // /preferences
- // "request": getTagsCloud()
- {
- "accessToken": 0,
- "action": "getTagsCloud",
- }
- // "response":
- {
- "status": 200,
- "data": {
- "tags": [
- {"id": 0, "name": "GOV", "fullName": "Governor"},
- {"id": 1, "name": "MAR", "fullName": "Marketing Somebody"},
- ]
- }
- }
- // /profile/edit (Profile)
- // "request": getSkills()
- {
- "accessToken": 0,
- "action": "getSkills",
- "request": "d"
- }
- // "response":
- {
- "status": 200,
- "data": {
- "skills": [
- {"id": 0, "name": "Design"},
- {"id": 1, "name": "Development"},
- ]
- }
- }
- /* ..- -. .. --.- ..- .. - . .-.-.- -.-. --- -- */
- // запрсы на сохранение
- // /profile/edit/
- // Save your Profile
- // "request": saveProfile()
- {
- "accessToken": 0,
- "action": "saveProfile",
- "data": {
- "name": "Igor",
- "surname": "Igorev",
- "date": 1483232461,
- "skills": [27, 11, 3] // всегда все текущие навыки пользователя
- }
- }
- // "response":
- {
- "status": 200,
- "data": {
- "name": "Igor",
- "surname": "Igorev",
- "date": 1483232461,
- "skills": [27, 11, 3]
- }
- }
- // /profile/edit/
- // Save your Education
- // "request": saveEducation()
- {
- "accessToken": 0,
- "action": "saveEducation",
- "data": {
- }
- }
- // "response":
- {
- "status": 200,
- "data": {
- }
- }
- // /profile/edit/
- // Save your Experience
- // "request": saveExperience()
- {
- "accessToken": 0,
- "action": "saveExperience",
- "data": {
- "file": "file",
- "location": "Москва",
- "company": "Тиньков банк",
- "role": "Веб-дизайнер",
- "description": "Опыт работы 5 лет",
- "salary": 100500,
- "period": [1483232460, 1483232461],
- "comments": "Очень плохой кофе",
- }
- }
- // "response":
- {
- "status": 200,
- "data": {
- "file": "file",
- "location": "Москва",
- "company": "Тиньков банк",
- "role": "Веб-дизайнер",
- "description": "Опыт работы 5 лет",
- "salary": 100500,
- "period": [1483232460, 1483232461],
- "comments": "Очень плохой кофе",
- }
- }
- // /profile/edit/
- // Save your Awards
- // "request": saveAwards()
- {
- "accessToken": 0,
- "action": "saveAwards",
- "data": [
- {
- "title": "Золотой NULL",
- "description": "Очень тяжелый NULL",
- "date": 1483232461,
- },{
- "title": "Золотой TIMESTAMP",
- "description": "Очень тяжелая награда",
- "date": 1483232461,
- }
- ]
- }
- // "response":
- {
- "status": 200,
- "data": [
- {
- "title": "Золотой NULL",
- "description": "Очень тяжелый NULL",
- "date": 1483232461,
- },{
- "title": "Золотой TIMESTAMP",
- "description": "Очень тяжелая награда",
- "date": 1483232461,
- }
- ]
- }
- // /profile/edit/
- // Save your Settings
- // "request": saveSettings()
- {
- "accessToken": 0,
- "action": "saveSettings",
- "data": {
- "oldPassword": "100400p*T8",
- "newPassword": "100500",
- "repeatPassword": "100500",
- }
- }
- // "response":
- {
- "status": 200,
- }
- // profession/*id
- // Add to goals + (career)
- // "request": saveNewGoalCareer()
- {
- "accessToken": 0,
- "action": "saveNewGoalCareer",
- "data": {
- "id": 0
- }
- }
- // "response":
- {
- "status": 200,
- "data": {
- "id": 0
- }
- }
- // /courses/*id
- // Add to goals + (Education)
- // "request": saveNewGoalEducation()
- {
- "accessToken": 0,
- "action": "saveNewGoalEducation",
- "data": {
- "id": 0
- }
- }
- // "response":
- {
- "status": 200,
- "data": {
- "id": 0
- }
- }
- // /goals/*id
- // V
- // "request": setGoalStepComplete()
- {
- "accessToken": 0,
- "action": "setGoalStepComplete",
- "data": {
- "stages": [
- {
- "id": 0,
- "completed": false,
- },{
- "id": 1,
- "completed": true,
- }
- ]
- }
- }
- // "response":
- {
- "status": 200,
- "data": {
- "stages": [
- {
- "id": 0,
- "completed": false,
- },{
- "id": 1,
- "completed": true,
- }
- ]
- }
- }
- // /addissues/*name
- // Add to My Profile
- // "request": saveNewAchievement()
- // ('Position change', 'Course completed', 'Project experience', 'Article published', 'Public talk', 'Test passed', 'Job interview', 'Book read', 'Education enrollment', 'Event attended', 'Other')
- {
- "accessToken": 0,
- "action": "saveNewAchievement",
- "data": {
- "progresstype": 0,
- "url": "ya.ru",
- "title": "стажировка",
- "date completed": 1483232461,
- "comments": "яндекс - наше всё",
- }
- }
- // "response":
- {
- "status": 200,
- "data": {
- "progresstype": 0,
- "url": "ya.ru",
- "title": "стажировка",
- "date completed": 1483232461,
- "comments": "яндекс - наше всё",
- }
- }
- // /addissues/*name
- // click on tag in a cloud
- // "request": saveTags()
- {
- "accessToken": 0,
- "action": "saveTags",
- "data": {
- "tags": [
- 0, 8, 17
- ]
- }
- }
- // "response":
- {
- "status": 200,
- "data": {
- "tags": [
- 0, 8, 17
- ]
- }
- }
- // /login/registration
- // Create New Account
- // "request": createAccount()
- {
- "accessToken": 0,
- "action": "createAccount",
- "data": {
- "email": "m@gmail.com",
- "password": "100500",
- "repeatPassword": "100500",
- }
- }
- // "response":
- {
- "status": 200,
- "accessToken": 0,
- "data": {
- "email": "m@gmail.com",
- "password": "100500",
- }
- }
- // /login
- // Sign in
- // "request": login()
- {
- "action": "login",
- "data": {
- "email": "m@gmail.com",
- "password": "100500",
- }
- }
- // "response":
- {
- "status": 200,
- "accessToken": 0,
- "data": {
- "email": "m@gmail.com",
- "password": "100500",
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement