Giter Site home page Giter Site logo

say-it-v1's Introduction

capstone project bangkit academy 2023 batch 2

  • M011BSX0624 – Felicia Natania Lingga – Padjadjaran University – Machine Learning
  • M002BSY0456 – Naufal Zidan Putra Irawan – Bandung Institute of Technology – Machine Learning
  • M002BSX1235 – Aliza Nurazizah Azhari – Bandung Institute of Technology – Machine Learning
  • C211BSY3588 – Imam Ahmad Fahrezi – Indraprasta University – Cloud Computing
  • C011BSY3833 – Muhammad Fauzan Azhiima – Padjadjaran University – Cloud Computing
  • A011BSY2190 – Fakhri Fajar Ramadhan – Padjadjaran University – Mobile Development

"Jangan tanya kenapa struktur folder dan kodenya nggak jelas, karena ini sesuai dengan slogan kami, yaitu I.S.K.Y atau 'Inkubasi Sukur Kaga Yaudah'."

Short Description

This is an application to grade the user's prononciation of a word. The app has lists of words, then the user can send their prononciation of those words. The app will give if their prononciation is already right or not.

User API Spec

Register User API

Endpoint : POST https://say-it-capstone-project.et.r.appspot.com/register

Request Body :

{
  "username" : "imam",
  "email": "[email protected]",  
  "password" : "rahasia" //min 8 char
}

Response Body Success :

{
  "status": "success",
  "message": "Registration successful",
  "data": {
    "id": "12345",
    "username": "imam",
    "email": "[email protected]"
  }
}

Response Body Error :

{
  "status": "error",
  "message": "Registration failed",
  "error_details": "Email or Username address is already in use"
}

Login User API

Endpoint : POST https://say-it-capstone-project.et.r.appspot.com/register

Request Body :

{
    "email" : "[email protected]",
    "password" : "rahasia"
}

Response Body Success : data tersebut maksudnya token

{
  "status": "success",
  "message": "Login successful",
  "data": {
    "id": "12345",
    "username": "imam",
    "email" : "[email protected]",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiAiMTIzNDUiLCAiaWF0IjogMTYyMzEyMzUwMH0.H6MQUMR1Jvh7zxP3kW6VXWd7OlvGp7sFcpj2ZDqkNKk"
  }
}

Response Body Error :

{
  "status": "error",
  "message": "Login failed",
  "error_details": "Invalid username or Invalid password"
}

Update User API

Endpoint : PUT /users/update

Headers :

  • Authorization : token
  • Content-Type : form-data

Request Body :

{
  "profile-picture":"file.img",
  "username" : "updated_username"
}

Response Body Success :

{
  "status": "success",
  "message": "User information updated successfully",
  "data": {
    "id": "12345",
    "username": "updated_username",
    "profile-picture":"file.img"
  }
}

Response Body Error :

{
  "status": "error",
  "message": "Failed to update user information",
  "error_details": ""
}

Get User API

Endpoint : GET /users Headers :

  • Authorization : token

Response Body Success:

{
  "status": "success",
  "message": "User information retrieved successfully",
  "data": {
    "user_id": "12345",
    "username": "john_doe",
    "email": "[email protected]"
    // additional user information
  }
}

Response Body Error :

{
  "status": "error",
  "message": "Failed to retrieve user information",
  "error_details": [
    {
      "code": "UNAUTHORIZED",
      "message": "Invalid or expired token"
    }
    // additional error details if needed
  ]
}

Get List of Words

Endpoints : GET /words?page=1

{
  "status": "success",
  "data": [
    {
        "id": "1",
        "word": "A"
    }, 
    {
        "id": "2",
        "word": "Apple"
    },
    {
        "id": "3",
        "word": "Boy"
    },
    ...
  ]
}

Response Body Error :

{
  "status": "error",
  "message": "Not Found",
}

Get Word Detail

Endpoints : GET /words/{WordID}

{
  "status": "success",
  "data": {
    "id": "1",
    "word": "A",
    "Description": "A"
  }
}

Response Body Error :

{
  "status": "error",
  "message": "Not Found",
}

say-it-v1's People

Contributors

nkapw avatar ojan208 avatar

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.