-
CORS policy in back end
- like in mock:
var Mock = require("mockjs") var express = require("express") var router = express.Router(); router.use("/", function (req, res) { console.log(req.body); //调用mock方法模拟数据 var data = Mock.mock({ "code": 200, "description": "success", "detail": { "avatar": "https://wx4.sinaimg.cn/large/b8fbd005gy1gxicusldztj20i20i2glv.jpg", "username": "root", "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyb290IiwiY3JlYXRlZCI6MTcxNjI3NzkxMjYzOCwiZXhwIjoxNzE2ODgyNzEyfQ.IHzp-ww5lCGMqyUiEWNUFFiPzuUlT8Osasu7La53qfivgqL2w9E78Su3Tbbl3zvxW9awrN1obzPP-6urr8RSAQ" } }); // Add CORS headers to allow requests from any origin res.setHeader('Access-Control-Allow-Origin', '*'); res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS'); res.setHeader('Access-Control-Allow-Headers', 'Content-Type, authorization'); return res.json(data); }); module.exports = router; -
set session token (authorization) in back end
-
Response data should be in json format
- /register : {"userName":"string", "password":"string", "institution":"string", "email":"string"} -> { "code": 200, "description": "success", "detail": { "avatar": "https://wx4.sinaimg.cn/large/b8fbd005gy1gxicusldztj20i20i2glv.jpg", "username": "root", "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJyb290IiwiY3JlYXRlZCI6MTcxNjI3NzkxMjYzOCwiZXhwIjoxNzE2ODgyNzEyfQ.IHzp-ww5lCGMqyUiEWNUFFiPzuUlT8Osasu7La53qfivgqL2w9E78Su3Tbbl3zvxW9awrN1obzPP-6urr8RSAQ" } }
-
[] api:
- searchConfByName
url: /conferences/searchConfByName payload: string name response:- searchJourByName
url: /journals/searchJourByName payload: String name response: [ { "id": 2, "name": "IEEE Transactions on Neural Networks", "website": "https://www.ieee.org", "specialIssue": "Special Issue on Reinforcement Learning", "submissionDeadline": "2024-07-01", "impactFactor": "5.123", "publisher": "IEEE", "viewCount": 1500, "ccf": "A*", "issn": "1045-9227" } ]- searchJourConfByName
url: /api/searchJourConfByName payload: string name response: { "conferences": [], "journals": [ { "id": 2, "name": "IEEE Transactions on Neural Networks", "website": "https://www.ieee.org", "specialIssue": "Special Issue on Reinforcement Learning", "submissionDeadline": "2024-07-01", "impactFactor": "5.123", "publisher": "IEEE", "viewCount": 1500, "ccf": "A*", "issn": "1045-9227" } ] }- getConferenceNum
url: /conferences/getConferenceNum payload: None response: 3- getJournalNum
url: /journals/getJournalNum payload: None response: 5- getUserNum
url: /user/getUserNum payload: None response: 3- getPageVisitedNum : the number of time that all confrences and journals been visited
url: /api/getPageVisitedNum payload: None response: 6600- getTopTenCallForPaper: deadline time increasing order -> get all in pages
const userSourceData = [ {CCF: "", CORE: "c", QUALIS: "", abbreviation: "AIR", fullName: "International Conference on Artificial Intelligence and Robots", delay: "Delay", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "a", CORE: "a", QUALIS: "A1", abbreviation: "ICML", fullName: "International Conference on Machine Learning", delay: "", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "c", CORE: "b", QUALIS: "B2", abbreviation: "ICCV", fullName: "International Conference on Computer Vision", delay: "", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "b", CORE: "c", QUALIS: "B3", abbreviation: "ICRA", fullName: "International Conference on Robotics and Automation", delay: "Delay", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "a", CORE: "a", QUALIS: "A2", abbreviation: "CVPR", fullName: "Computer Vision and Pattern Recognition", delay: "", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "c", CORE: "b", QUALIS: "B4", abbreviation: "ICML", fullName: "International Conference on Machine Learning", delay: "", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "b", CORE: "c", QUALIS: "B5", abbreviation: "ICCV", fullName: "International Conference on Computer Vision", delay: "Delay", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "a", CORE: "a", QUALIS: "A1", abbreviation: "ICRA", fullName: "International Conference on Robotics and Automation", delay: "", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "c", CORE: "b", QUALIS: "B2", abbreviation: "CVPR", fullName: "Computer Vision and Pattern Recognition", delay: "", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "b", CORE: "c", QUALIS: "B3", abbreviation: "ICML", fullName: "International Conference on Machine Learning", delay: "Delay", deadline: "2024-06-10", notifyDate: "2024-07-10", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, ]- getTopTenConference: conference time increasing order -> get all in pages
const userSourceData = [ {CCF: "", CORE: "c", QUALIS: "", abbreviation: "AIR", fullName: "International Conference on Artificial Intelligence and Robots", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "a", CORE: "a", QUALIS: "A1", abbreviation: "ICML", fullName: "International Conference on Machine Learning", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "c", CORE: "b", QUALIS: "B2", abbreviation: "ICCV", fullName: "International Conference on Computer Vision", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "b", CORE: "c", QUALIS: "B3", abbreviation: "ICRA", fullName: "International Conference on Robotics and Automation", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "a", CORE: "a", QUALIS: "A2", abbreviation: "CVPR", fullName: "Computer Vision and Pattern Recognition", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "c", CORE: "b", QUALIS: "B4", abbreviation: "ICML", fullName: "International Conference on Machine Learning", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "b", CORE: "c", QUALIS: "B5", abbreviation: "ICCV", fullName: "International Conference on Computer Vision", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "a", CORE: "a", QUALIS: "A1", abbreviation: "ICRA", fullName: "International Conference on Robotics and Automation", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "c", CORE: "b", QUALIS: "B2", abbreviation: "CVPR", fullName: "Computer Vision and Pattern Recognition", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, {CCF: "b", CORE: "c", QUALIS: "B3", abbreviation: "ICML", fullName: "International Conference on Machine Learning", conferenceDate: "2024-08-10", location: "Shanghai, China", session: 7, visit: 100}, ]- getTopTenJournal: deadline time increasing order -> get all in pages
const userSourceData = [ {CCF: "", fullName: "IEEE Software", specialIssue: "Creativity in Software Engineering", deadline: "2024-06-10", factor: "2.586", publisher: "IEEE", visit: 100}, {CCF: "a", fullName: "IEEE Transactions on Software Engineering", specialIssue: "Software Engineering for AI-Driven Systems", deadline: "2024-06-10", factor: "3.286", publisher: "IEEE", visit: 100}, {CCF: "c", fullName: "IEEE Transactions on Software Engineering", specialIssue: "Software Engineering for AI-Driven Systems", deadline: "2024-06-10", factor: "3.286", publisher: "IEEE", visit: 100}, {CCF: "b", fullName: "IEEE Transactions on Software Engineering", specialIssue: "Software Engineering for AI-Driven Systems", deadline: "2024-06-10", factor: "3.286", publisher: "IEEE", visit: 100}, {CCF: "a", fullName: "IEEE Software", specialIssue: "Creativity in Software Engineering", deadline: "2024-06-10", factor: "2.586", publisher: "IEEE", visit: 100}, {CCF: "c", fullName: "IEEE Transactions on Software Engineering", specialIssue: "Software Engineering for AI-Driven Systems", deadline: "2024-06-10", factor: "3.286", publisher: "IEEE", visit: 100}, {CCF: "b", fullName: "IEEE Transactions on Software Engineering", specialIssue: "Software Engineering for AI-Driven Systems", deadline: "2024-06-10", factor: "3.286", publisher: "IEEE", visit: 100}, {CCF: "a", fullName: "IEEE Transactions on Software Engineering", specialIssue: "Software Engineering for AI-Driven Systems", deadline: "2024-06-10", factor: "3.286", publisher: "IEEE", visit: 100}, {CCF: "c", fullName: "IEEE Software", specialIssue: "Creativity in Software Engineering", deadline: "2024-06-10", factor: "2.586", publisher: "IEEE", visit: 100}, {CCF: "b", fullName: "IEEE Transactions on Software Engineering", specialIssue: "Software Engineering for AI-Driven Systems", deadline: "2024-06-10", factor: "3.286", publisher: "IEEE", visit: 100}, ]- getTopTenConfVisited -> get all in pages
url: /conferences/visit/topTen payload: None response: [ { "id": 2, "name": "Conference on Neural Information Processing Systems", "website": "http://neurips.cc", "abbreviation": "NeurIPS", "callForPapers": "Call for papers details...", "submissionDeadline": "2024-06-15", "notificationDate": "2024-07-15", "conferenceDate": "2024-08-15", "location": "Montreal, Canada", "frequency": 35, "viewCount": 2000, "isPostponed": false, "ccf": "A", "core": "A*", "qualis": "A1" }, { "id": 1, "name": "International Conference on Machine Learning", "website": "http://icml.cc", "abbreviation": "ICML", "callForPapers": "Call for papers details...", "submissionDeadline": "2024-06-01", "notificationDate": "2024-07-01", "conferenceDate": "2024-08-01", "location": "San Francisco, USA", "frequency": 38, "viewCount": 1500, "isPostponed": false, "ccf": "A", "core": "A*", "qualis": "A1" }, { "id": 3, "name": "CVPR", "website": null, "abbreviation": "CVPR", "callForPapers": null, "submissionDeadline": null, "notificationDate": null, "conferenceDate": null, "location": null, "frequency": 0, "viewCount": null, "isPostponed": null, "ccf": null, "core": null, "qualis": null } ]- getTopTenConfFollowed -> get all in pages
url: /follow/conference/topTen payload: None response: [ { "conferenceId": 2, "followNum": 2, "conference": { "id": 2, "name": "Conference on Neural Information Processing Systems", "website": "http://neurips.cc", "abbreviation": "NeurIPS", "callForPapers": "Call for papers details... ", "submissionDeadline": "2024-06-15", "notificationDate": "2024-07-15", "conferenceDate": "2024-08-15", "location": "Montreal, Canada", "frequency": 35, "viewCount": 2000, "isPostponed": false, "ccf": "A", "core": "A*", "qualis": "A1" } }, { "conferenceId": 3, "followNum": 1, "conference": { "id": 3, "name": "CVPR", "website": null, "abbreviation": "CVPR", "callForPapers": null, "submissionDeadline": null, "notificationDate": null, "conferenceDate": null, "location": null, "frequency": 0, "viewCount": null, "isPostponed": null, "ccf": null, "core": null, "qualis": null } } ]- getTopTenConfJoined -> get all in pages
const userSourceData = [ {abbreviation: "ICRA", join: 99}, {abbreviation: "IROS", join: 123456}, {abbreviation: "CVPR", join: 123456}, {abbreviation: "ICCV", join: 123456}, {abbreviation: "ECCV", join: 123456}, {abbreviation: "ICML", join: 123456}, {abbreviation: "NeurIPS", join: 123456}, {abbreviation: "AAAI", join: 123456}, {abbreviation: "ACL", join: 123456}, {abbreviation: "ICLR", join: 123456}, ]- getTopTenJourVisited -> get all in pages
url: /journals/visit/topTen payload: None response: [ { "id": 2, "name": "IEEE Transactions on Neural Networks", "website": "https://www.ieee.org", "specialIssue": "Special Issue on Reinforcement Learning", "submissionDeadline": "2024-07-01", "impactFactor": "5.123", "publisher": "IEEE", "viewCount": 1500, "issn": "1045-9227", "ccf": "A*" }, { "id": 1, "name": "Journal of Machine Learning Research", "website": "http://jmlr.org", "specialIssue": "Special Issue on Deep Learning", "submissionDeadline": "2024-06-01", "impactFactor": "2.567", "publisher": "MIT Press", "viewCount": 1200, "issn": "1533-7928", "ccf": "A" }, { "id": 3, "name": "Journal1", "website": null, "specialIssue": null, "submissionDeadline": null, "impactFactor": null, "publisher": null, "viewCount": null, "issn": null, "ccf": null }, { "id": 4, "name": "Journal2", "website": null, "specialIssue": null, "submissionDeadline": null, "impactFactor": null, "publisher": null, "viewCount": null, "issn": null, "ccf": null } ]- getTopTenJourFollowed -> get all in pages
url: /follow/journal/topTen payload: None response: [ { "journalId": 1, "followNum": 1, "journal": { "id": 1, "name": "Journal of Machine Learning Research", "website": "http://jmlr.org", "specialIssue": "Special Issue on Deep Learning", "submissionDeadline": "2024-06-01", "impactFactor": "2.567", "publisher": "MIT Press", "viewCount": 1200, "issn": "1533-7928", "ccf": "A" } }, { "journalId": 2, "followNum": 1, "journal": { "id": 2, "name": "IEEE Transactions on Neural Networks", "website": "https://www.ieee.org", "specialIssue": "Special Issue on Reinforcement Learning", "submissionDeadline": "2024-07-01", "impactFactor": "5.123", "publisher": "IEEE", "viewCount": 1500, "issn": "1045-9227", "ccf": "A*" } } ]-
getConfInCall: paging
url: /conferences/getConfInCall/ payload: None response: [ { "id": 2, "name": "Conference on Neural Information Processing Systems", "website": "http://neurips.cc", "abbreviation": "NeurIPS", "callForPapers": "Call for papers details...", "submissionDeadline": "2024-06-15", "notificationDate": "2024-07-15", "conferenceDate": "2024-08-15", "location": "Montreal, Canada", "frequency": 35, "viewCount": 2000, "isPostponed": false, "core": "A*", "ccf": "A", "qualis": "A1" } ] -
getConfFinished: paging
url: conferences/getConfFinished payload: None response: [ { "id": 1, "name": "International Conference on Machine Learning", "website": "http://icml.cc", "abbreviation": "ICML", "callForPapers": "Call for papers details...", "submissionDeadline": "2024-06-01", "notificationDate": "2024-07-01", "conferenceDate": "2024-08-01", "location": "San Francisco, USA", "frequency": 38, "viewCount": 1500, "isPostponed": false, "ccf": "A", "qualis": "A1", "core": "A*" }, { "id": 3, "name": "Test Conference", "website": "http://testconference.com", "abbreviation": "TC", "callForPapers": "Call for papers details...", "submissionDeadline": "2024-05-31", "notificationDate": "2024-06-30", "conferenceDate": "2024-07-31", "location": "San Francisco, USA",
"frequency": 1, "viewCount": 100, "isPostponed": false, "ccf": "A", "qualis": "A1", "core": "A*" } ]
- getConfJoiners - getConfFollowers - getRelatedConferences - getRelatedJournals ### 期刊页 - getJourInCall: ``` url: /journals/getJourInCall response: [ { "id": 2, "name": "IEEE Transactions on Neural Networks", "website": "https://www.ieee.org", "specialIssue": "Special Issue on Reinforcement Learning", "submissionDeadline": "2024-07-01", "impactFactor": "5.123", "publisher": "IEEE", "viewCount": 1500, "ccf": "A*", "issn": "1045-9227" } ] ``` - getJourFinished: ``` url: journals/getJourFinished response: [ { "id": 1, "name": "Journal of Machine Learning Research", "website": "http://jmlr.org", "specialIssue": "Special Issue on Deep Learning", "submissionDeadline": "2024-06-01", "impactFactor": "2.567", "publisher": "MIT Press", "viewCount": 1200, "ccf": "A", "issn": "1533-7928" }, { "id": 3, "name": "Updated Journal", "website": "http://testjournal.com", "specialIssue": "Special Issue on AI", "submissionDeadline": "2024-05-31", "impactFactor": "5.123", "publisher": "Test Publisher", "viewCount": 100, "ccf": "A", "issn": "1234-5678" }, { "id": 5, "name": "Test Journal", "website": "http://testjournal.com", "specialIssue": "Special Issue on AI", "submissionDeadline": "2024-05-31", "impactFactor": "5.123", "publisher": "Test Publisher", "viewCount": 100, "ccf": "A", "issn": "1234-5678" }, { "id": 6, "name": "Test Journal", "website": "http://testjournal.com", "specialIssue": "Special Issue on AI", "submissionDeadline": "2024-05-31", "impactFactor": "5.123", "publisher": "Test Publisher", "viewCount": 100, "ccf": "A", "issn": "1234-5678" } ] ``` ### 用户页 - getUserInfo ``` - url: /getUserInfo/{id} response: { "id": 1, "userName": "user1", "email": "user1@example.com", "password": "$2a$10$7Q7rOd/oPSK.s4xPSzX5M.3Ow5nxjG5B27I7jN5XBItuMwBsSlD6a", "institution": "Institution1", "registrationTime": "2023-05-29T10:00:00" } - updateUserInfo url: /updateUserInfo/{id} payload: { "id": 1, "userName": "user1", "email": "user1@example.com", "password": "123", "institution": "Institution1", "registrationTime": "2023-05-29T10:00:00" } response: { "id": 1, "userName": "user1", "email": "user1@example.com", "password": "$2a$10$nIMYpQTmKrVikZb9zzrKmO0djhbzZKMlMxra6SXnQfsN9dVRMCqGK", "institution": "Institution1", "registrationTime": "2023-05-29T10:00:00" } ```
-
getFollowersInConference
url: /conferences/getFollowersInConference payload: conferenceId Long response: [ 1 ]
-
getJoinersInConference
url:
/conferences/getJoinersInConference
payload:
conferenceId Long
response:
[
1
]
- getFollowersCount
url:
/conferences/getFollowersCount
payload:
conferenceId Long
response:
[
1
]
- getJoinersCount
url:
/conferences/getJoinersCount
payload:
conferenceId Long
response:
[
1
]
-
getFollowersInJournal
url: /journals/getFollowersInJournal payload: journalId Long response: [ 1 ]register api: response token: res.data.token like in login api
会议信息➕:lastModifiedDate : "2024-06-10",lastModifiedUser : "Dou Sun"