dikyarga / api-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api-basic

My Community App

This app will help my community organize events more easily!

REST API

Basic

Routes HTTP Description
/api/hello?name={name} GET Print hello, {name} !

AUTH API

Routes HTTP Description
/api/signup POST Signup a new user
/api/signin POST User sign in and get credetial token after login

User API

Routes HTTP Description
/api/users GET Get all users (admin only)
/api/users/:id GET Get Single User (admin and authenticated user)
/api/users/ POST Create a user (admin only)
/api/users/:id DELETE Delete a user (admin only)
/api/users/:id PUT Update data of a user (admin and authenticated user)
/api/users/:id PATCH Update data of a user with specific new info

Filter routes

Routes HTTP Description
/api/users?name="{name}" GET Get {name} matched in users list
/api/users?name="{na}" GET Get {na} like in users list

About


Languages

Language:JavaScript 94.4%Language:HTML 4.8%Language:CSS 0.9%