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
Example: {id=42, name=example}

object

NameTypeDescription
idinteger (int32)REQUIRED. A unique ID for the new user
Example: 42
namestringThe name of the user
Example: example

Responses

CodeContent TypeDescription
201*/*

The user was created

400*/*

The ID or name was not specified

Curl

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

GET /users/{id}

Gets a single user

Parameters

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

Responses

CodeContent TypeDescription
200application/json

Success

404application/json

No user with that ID found

Curl

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