# Project: bo new services api ## 1) Legends Matches Query ### Method: GET >``` >{{host}}/api/legendMatches?page=2&pageSize=20&startDateTime=2022-11-23T05:54:09.999Z&endDateTime=2022-11-23T05:54:09.999Z&walletAddr=xx&matchType=unranked,chainWar >``` ### Query Params |Param|value| |---|---| |page|1| |pageSize|20| |startDateTime|2022-11-23T05:54:09.999Z| |endDateTime|2022-11-23T05:54:09.999Z| |walletAddr|0xABC| |matchType|unranked,chainWar,ranked| ### 🔑 Authentication bearer |Param|value|Type| |---|---|---| |token|{{token}}|string| ### Response: 200 ```json { "pageSize":20, "page":1, "totalRows":3000, "dashboard":{ "totalMatches":{ "value":123, "win":123, "lose":123, }, "unrankedMatches":{ "value":123, "win":123, "lose":123, }, "rankedMatches":{ "value":123, "win":123, "lose":123, }, "chainWar":{ "value":123, "win":123, "lose":123, } }, "matchList":[ { "seqNo":1, "matchType":1, "matchTriggeredDateTime":"2012-04-23T18:25:43.511Z", "matchEndDateTime":"2012-04-23T18:25:43.511Z", "matchResult":"xx", "walletAddress":"xx", "opponent":"xx", "createAt":"2012-04-23T18:25:43.511Z", "createdBy":"admin", "updateAt":"2012-04-23T18:25:43.511Z", "updatedBy":"admin", } ] } ``` ## 2) Quest Assigning Query ### Method: GET >``` >{{host}}/api/quests?page=2&pageSize=20&startDateTime=2022-11-23T05:54:09.999Z&endDateTime=2022-11-23T05:54:09.999Z&walletAddr=xx&questType=weekly&questStatus=uncompleted >``` ### Query Params |Param|value| |---|---| |page|1| |pageSize|20| |startDateTime|2022-11-23T05:54:09.999Z| |endDateTime|2022-11-23T05:54:09.999Z| |walletAddr|0xABC| |questType|(questType)| |questStatus|(questStatus)| ``` questType Daily Weekly UltraRare Rank --- questStatus Rewarded Completed Uncompleted ``` ### 🔑 Authentication bearer |Param|value|Type| |---|---|---| |token|{{token}}|string| ### Response: 200 ```json { "pageSize":20, "page":1, "totalRows":3000, "dashboard": { "daily": { "completeQuest": 62, "oplClaimed": 174 }, "weekly": { "completeQuest": 5, "oplClaimed": 870 }, "ur": { "completeQuest": 5, "oplClaimed": 1740 }, "rankedRewards": { "completeQuest": 2, "oplClaimed": 10000 } }, "questList":[ { "seqNo":1, "questType":"Weekly", "questDescription":"xx", "questAssignedDateTime":"2012-04-23T18:25:43.511Z", "status":"xx", "rewards":"xx", "statusUpdatedDateTime":"2012-04-23T18:25:43.511Z", "walletAddress":"0x123", "updatedBy":"admin" } ] } ```