Ktor REST API

Ktor Dummy REST APIs

In order to work with other sample Projects which requires API calls. I badly needed a dummy APIs, so I thought of owning a one.

This page is all about how to use it.




Endpoints

Endpoint Request Description
/v1/user GET Response of All Users
/v1/user/{id} GET Get Specific User by Id
/v1/user/{id} DELETE Delete the user data
/v1/user POST Add a new User


GET /v1/user : get all users list

Response:



GET /v1/user/{id} : get user by id

Response:



DELETE /v1/user/{id} : delete a user details by id

Response:



POST /v1/user : Add new User Data

Request Params:

Key Type
name String
username String
email String
imageUrl String

Response:


NOTE: If you want to use this API service in any of your example projects, you would require a Basic Authorization to access it.

View Source