User API Documentation

This is just a demo API that doesn't actually work!

For more info, see Documentation docs

Version 1.0

A human user

Use this API to get and create users

POST /users

Creates a new user

Request body

application/x-www-form-urlencoded
NameTypeDescription
namestringThe name of the user
idinteger (int32)REQUIRED. A unique ID for the new user

Responses

CodeContent TypeDescription
400*/*The ID or name was not specified
201*/*The user was created

Curl

curl -is -X POST -H 'accept: */*' -H 'content-type: application/x-www-form-urlencoded' -d 'name=' -d 'id=' 'https://muserver.io/jaxrsdocs/users'

GET /users/{id}

Gets a single user

Parameters

NameTypeDescription
idpath - integer (int32)REQUIRED. The ID of the user

Responses

CodeContent TypeDescription
404application/jsonNo user with that ID found
200application/jsonSuccess

Curl

curl -is -X GET -H 'accept: application/json' 'https://muserver.io/jaxrsdocs/users/(id)'