Skip to content

happy-web-hour/pinner

Repository files navigation

pinner

APIs

  • POST /pin - cria um novo HH

Request

Response 200

{
	"pin": "string"
}
  • PATCH /pin/{pin} - adiciona o usuário ao pin
    Request
{
	"name": "string"
}

Response 200

{
    "userId": "string",
    "name": "string"
}

404 - Pin not found

  • DELETE /pin/{pin}/{userId} - remove usuário do hh

Request

Response 200

  • GET /pin/{pin}/users - retorna o nome dos usuarios

Request

[
	"string"
]

Response 200

[
	{
		"userId": "string",
		"name": "string"
	}
]

Database

Schema:

[
	{
		"pin":"string",
		"users":[
			{
				"userId": "string",
				"name": "string"
			}	
		]
	}
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published