Node.js API on Vercel

Available Endpoints

  • GET /api/hello

    Returns a simple hello world message

  • POST /api/echo

    Echoes back the JSON body you send

  • GET /api/users

    Returns a list of sample users

  • GET /api/users/[id]

    Returns a specific user by ID

  • POST /api/users

    Creates a new user (simulation)

  • GET /api/projects

    Fetches all projects

  • GET /api/projects/[id]

    Fetches a specific project by ID

  • POST /api/projects

    Creates a new project

  • PUT /api/projects/[id]

    Updates an existing project

  • DELETE /api/projects/[id]

    Deletes a project by ID