Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 662 Bytes

pokemonPost.md

File metadata and controls

39 lines (31 loc) · 662 Bytes

Add new pokemon

Add a new pokemon to the API

URL: /api/pokemon

Method: POST

Auth requested: YES

Data constraints:

headers: {
	"Content-Type": "multipart/form-data"
	"Authorization": "Bearer [Token]"
},
body: {
	"id": "[Number]",
	"name": "[String]",
	"image": "[File]",
	"stats": {
		"speed": "[Number]",
		"specialDefense": "[Number]",
		"specialAttack": "[Number]",
		"defense": "[Number]",
		"attack": "[Number]",
		"hp": "[Number]"
	},
	"baseExperience": "[Number]",
	"weight": "[Number]",
	"abilities": "[String Array]",
	"moves": "[String Array]"
}

Success response

  • The added pokemon - 201 Created