Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

About

Final Project API wrapper from Web 2 college course

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

uru-web-2-final-project-api-wrapper

JavaScript client for the Web 2 final project API. It exposes each endpoint as a method of one class, so a frontend can call the API without writing fetch code.

Note: This repository is archived and read-only, and it is coursework. It is published as the npm package @ralvarezdev/uru-web-2-final-project-api-wrapper.

The wrapper targets uru-web-2-final-project-api: it sends JSON POST requests to routes such as /signup, and sends multipart forms (a file, images and the JSON body as a stringify field) for operations that upload files.

Usage

index.js exports APIWrapper, an ES module class built with the API host. It has about 70 methods, named after the operation (SignUp, LogIn, LogOut, SendEmailVerification, VerifyEmail, ForgotPassword, ResetPassword, Execute, CreateProfile, UpdateProfile and so on). Each returns the fetch response.

import {APIWrapper} from '@ralvarezdev/uru-web-2-final-project-api-wrapper'

const api = new APIWrapper('http://localhost:3000')
const response = await api.LogIn(/* credentials */)

Check the method signatures in index.js before use; the example above is only the call shape.

License

GNU General Public License v3.0. package.json declares GPL-3.0-only, matching the LICENSE file.

About

Final Project API wrapper from Web 2 college course

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages