Skip to content

Instantly share code, notes, and snippets.

@juanchehin
Created June 17, 2023 00:00
Show Gist options
  • Save juanchehin/2d1b29858f80926abaa9f52cfe5df245 to your computer and use it in GitHub Desktop.
Save juanchehin/2d1b29858f80926abaa9f52cfe5df245 to your computer and use it in GitHub Desktop.
Ejemplo de JSON para tomar notas de endpoints de API 
{
api_endpoints: {
sign_up: {
url: 'mywebsite.com/auth/sign_up',
method: 'POST',
shape: {
username: { type: String, required: true, min: 6, max: 18 },
password: { type: String, required: true, min: 6: max 32 },
referralCode: { type: String, required: true, min: 64, max: 64 }
}
},
sign_in: {
url: 'mywebsite.com/auth/sign_in',
method: 'POST',
shape: {
username: { type: String, required: true, min: 6, max: 18 },
password: { type: String, required: true, min: 6: max 32 }
}
},
reset_password: {
url: 'mywebsite.com/auth/reset',
method: 'POST',
shape: {
username: { type: String, required: true, min: 6, max: 18 },
password: { type: String, required: true, min: 6: max 32 },
newPassword: { type: String, required: true, min: 6: max 32 }
}
}
},
features: {
comments: {},
uploads: {
file_sharing: {}
},
},
integrations: {
oath: {
twitter: {},
facebook: {},
youtube: {}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment