-
Notifications
You must be signed in to change notification settings - Fork 1
Practice App Frontend Documentation
Alperen edited this page May 10, 2023
·
4 revisions
Important! After making your changes, open a pull request without pushing directly and don't forget to add the front-end team as a reviewer.
1) First, you need to write your API post and get functions in the APIFunctions folder. Below you can find an example of the Post and Get functions.
Don forget that you can use the utility fonctions getAPIUrl() and getUserEmail() !
- /api/"your_api_page_url_extension" to do that first add an element to apidata dictionary which in apidata.js.
- Your element key must be "your_api_page_url_extension".
- Value of element key is an object which has 4 keys. First key is name, which is the title of your api. There is also postFunction, getFunction and form.
- Form is an object and there are two elements. First element is buttonText and its value is text on the submit button. Second element is input and its value is also an object.
- In input objects value, we can add as many input elements as we want to the input object value dictionary from the below input elements.
- On your request page, you can get 4 types of input from the user.
Text Input | Number Input | Bool Input | Select Input |
---|---|---|---|
You can get the input that the user writes in the text section. | You can get the number that the user writes in the text section. | You can get the input from a switch. | You can take the selected option as input by providing options to the user. |
Text Input has 3 fields. type must be "text", name must be a unique name and label should be the label name. | Number Input has 3 fields. type must be "number", name must be a unique name and label should be the label name. | Bool Input has 3 fields. type must be "bool", name must be a unique name and label should be the label name. | Select Input has 4 fields. type must be "select", name must be a unique name, label should be the label name ,and options is an array whose elements are objects. Option objects have two keys, name and value. |
Cmpe 352
Cmpe 451
Cmpe 352
Milestone 1
Final Milestone
Milestone 1
Milestone 2
Final Milestone
- Authentication Mockup
- Forum Mockup
- Game Reviews Mockup
- Games Page Mockup
- Group Page Mockup
- Home Page Mockup
- Profile Page Mockup
- Unregistered User Scenario: Sign Up
- Unregistered User Scenario: Search for a Game and Browse the Game Forum
- Registered User Scenario: Create Post in a Game Forum
- Registered User Scenario: Search For Groups and Join A Group
📝 RAM
- Issue Template
- Personal Information Template
- Meeting Note Template
- Contributions Template
- API Documentation Template
API Documentation for Practice App
- Top Games
- Yugioh Card
- Hearthstone Card
- Games By User
- Game Reviews
- Games By Genre
- Games By Category
- Game Suggestions
- Esport Tournaments
- Achievement By Game Id
- Rock Paper Scissors
- Game By Deal