/TEST_API

test api for testing tests.

Primary LanguageJavaScript

TEST_API

How to use the API

The API is hosted on Railway. There's no frontend so you'll need to make requests directly with a tool like Postman.

API URL: https://testapi-production-6225.up.railway.app

Make sure you use HTTPS or all non-GET requests won't work (they'll act like a GET requests).

Routes

All usable routes are on /users.

Create a User

POST /users, send username, email, password and age in JSON body.

Get all Users

GET /users

Get User by ID

GET /users/<id>?username=<username>&password=<password>

Update a User (age)

PATCH /users/<id>?username=<username>&password=<password>, send new age in JSON body

Delete a User

DELETE /users/<id>?username=<username>&password=<password>