Giter VIP home page Giter VIP logo

ctwapi's Introduction

CtwApi

ctwapi's People

Contributors

ekwav avatar flou21 avatar tentamens avatar

Watchers

 avatar  avatar  avatar

Forkers

tentamens

ctwapi's Issues

Multiplier API returning null

This is the return values:
MultiplierResponse[success=true, multiplier=[ActiveMultiplier[multiplier=1.25, category=animal], ActiveMultiplier[multiplier=null, category=clothes], ActiveMultiplier[multiplier=null, category=fruit]]]

Uploading Error

When uploading an item I haven't already, I get 500 status code
Failed to upload image. Status code: {"slug":"internal_error","message":"An unexpected internal error occured. Please check that your request is valid. If it is please report he error and include reference \u00270bd7518990f67ad53b56edaaf82e1706\u0027.","trace":"ctwapi-59c86b9f7f-94nz5.0bd7518990f67ad53b56edaaf82e1706"} I/flutter (18422): 500

Issues with image upload endpoint

Rename image bonus to baseReward
Unqiue is false when it should be true
dailyItemReward says 0 even when challange/daily says I have 4 progress
collectedTimes should start at 1

Add a new leaderboard endpoint

So I don't have to call api/leaderboard/boardName/me three time to get the user's position of each board, can you just give me one that returns all three?

Changes to image upload endpoint

Return whether it was a "new" item (Be in the first 20 to collect it)
Also when it actually comes time to process the images have it so that if it takes longer than say 2 seconds to process the image just award the user XP anyway and take it away later if needed.

Newest items endpoint

An endpoint for the newest items sorted by newest and time (for each level like 450XP/350XP ext. the old will be at the bottom)

exp/history changes

Gives each item a UID so it's easier to verify whether I have displayed it before.

Stats endpoint returns 404

when requesting /stats endpoint it returns 404 from Nginx? this may be a Flou issue.
I also made sure this wasn't an issue with the generated code in Flutter, by calling it in API doc. Which may mean it's just an issue with open-API

Daily and weekly global quest

Add a global quest ( for all users) to collect x amount of images in a day or a week rewarding each user depending on participation. depending on participation for example could be to get at least 2 images for the daily or 15 for the weekly.
I don't think these should be restricted to categories of items.

Add daily streak system

We were already talking about it and the name is pretty self-explanatory, But also make sure you return it in the stat end-point.

Daily items

Make an endpoint for daily items.
The number of items: Start with 15 and maybe adjust that in the future.
XP per item: for every item, give them between 50-250 XP in intervals of 25.
Item Quests: Starting at needing to collect 1 of the items, increasing by 2 each time. Reward the user 75 XP, increasing by 1.5x each time (applying all multipliers)

Daily goal

Add a service for daily goals to get 7 images in one day and on completion gain 500 XP

Add Leaderbaord endpoints

Get score,
get around
get rank
add profile
get board
should be supported, adding scores is done internally

challenge api

Randomize each item's XP value between 10-50 in the object/challenge endpoint.

500 error when calling skip endpoint

Only happened once, couldn't reproduce still an issue tho
\u00270893d2cfdab59e9c7d84ef1dff83aed2\u0027.","trace":"ctwapi-59c86b9f7f-94nz5.0893d2cfdab59e9c7d84ef1dff83aed2"

Stats to add

Add top ten finishes (daily or weekly) and unique images taken.

Add exp endpoint

Count exp up when collecting an item.
current item doubles exp.
award exp again if description is uploaded

new Challenge/quest

( Maybe make a whole system for quests/Challenges so they can be easily added or changed)
A quest for every 5 "new" items (be in the first say 50 to collect the item) you gain 5,000 XP

Json file

Add a JSON file in the backend that has all stats like leaderboard reward, bonus multipliers, base rewards, ext. So it's easy for me or you to adjust all in one place

How do you want the legal flow

Write me the legal flow for the user for that I will implement, how/when they accept it how many buttons in the first accept screen what to do if they decline ext.

New stat endpoint

Add a stat endpoint to which you can pass a UUID/ID and get that user's stats.

Add bonuses

Add a service that makes three bonuses per day which will be multipliers for categories or types of items like indoor items, food, plants ext. Give the three of them an increasing multiplier of 1.25x 2x 4x respectively.

Equal right for words

I have a dream! Make all words have equal rights have them handled the same ai confirmed or not!

More leaderboard issues

When I call Stats api it says I have 1025 XP but on the leaderboard all time it says I have 820 XP

Couple issues with stats endpoint

When I uploaded an image of an item, I have already collected before images_uploaded still increases. Also, I somehow have three skips available, it should be maxed out at 2.

Upload image issues

It takes a very long time to respond, like 4โ€“5 seconds.
All return numbers are 0 this was my first time collecting the item and I got a return total was 0

Leaderboard xp rewards

Daily leaderboard give top ten +1000XP give 1,2,3 3000,2000,1000 in their respective order.
For Weekly give top twenty 3000k give 1,2,3 6000,3000,2000 in their respective order.

New endpoint

Make an endpoint that I call on start up and notifies the user if they had XP removed for added from their account. Example, placing top ten in the leaderboard or got XP removed because they took the wrong image of an item ext.

Issues with image upload

This is the response I got when uploading acorn.
{image: {id: b1598985-5e53-44ea-b22f-c11a77710cb9, userId: 847e326b-c39b-484e-9621-c46962d04c04, objectLabel: apple, description: null, day: 1642, verifications: 0, metadata: null, contentType: image/jpeg, size: 353601}, rewards: {total: 0, multiplier: 0, imageBonus: 490, isCurrent: false, unique: false, dailyItemReward: 0, dailyQuestReward: 0}}
There's no multiplier and no total, which doesn't make much sense at all. There should be a multiplier from the bonus "forest" it also seems like it did apply one, but I'm not sure

Switch datamodel

Each collectible should have a term which its identified by.
CollectedObjects can have

  • a description, detailing what happens to the object
  • a segmentation map detailing where the object is

Easy items for new users

make the first 10-20 items easy, like a mug hand ext. just so a user doesn't download the app and have to find a very specific item and then delete the game.

More changes to stats endpoint

Their may be more in the comments
Add remaining skips in the api/stats/all endpoint. I know there is already an endpoint, but I don't want to call that every time on start up I want in the stats response

Leaderboard issues

Daily doesn't have an avatar and no users show up in the weekly leaderboard

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.