Skip to content

Kamil-IT/alarm-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android app surce code

<CircleCI>

Alarm API

REST API for alarm app, which accept JSON for request payload and also send responses to JSON and use JWT authentication. Also use as database PostgreSQL in production and for tests h2 in memory database. Server is running on AWS in Docker container.

Authentication

Example use

Request to get JWT token should by to /api/auth and have JSON body with username and password. Token is valid 30 minutes.

If you havent got accout you should send request to /api/newaccount witch JSON body witch username and password and email.

How to use

All request shoud have header: Authorization Bearer JWT_BEARER_TOKEN

Base URL /api/v1/

Full swager JSON documentation available: v2 v3

Full swager ui documentation available on http://alarmrestapi.eu-central-1.elasticbeanstalk.com/swagger-ui

About

Api for alarm clock(jwt authentication)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages