Test tv - A marketing company needs a simple pluggable application with a RESTful interface

Overview

Demo project

A marketing company needs a simple pluggable application with a RESTful interface in order to be able to check the prices for commercials on every registered TV channel

Local Properties

You should change com.tagsoft.demo.uploads.directory property. Set location to save JAR file on your local

Requests

  1. Register new user

    curl --location --request POST 'localhost:8080/v1/auth/register'
    --header 'Content-Type: application/json'
    --data-raw '{ "email":"[email protected]", "password":"Qwe123", "userName":"nikolayK" }'


  1. Authorization

    curl --location --request POST 'localhost:8080/v1/auth/authenticate'
    --header 'Content-Type: application/json'
    --data-raw '{ "email":"[email protected]", "password":"Qwe123" }'


  1. Add channel (Only for ADMIN)

    curl --location --request POST 'localhost:8080/v1/tv_channel?name=QATV'
    --header 'Authorization: Bearer auth_token' \


  1. Remove channel by name (Only for ADMIN)

    curl --location --request DELETE 'localhost:8080/v1/tv_channel?name=QATV'
    --header 'Authorization: Bearer auth_token' \


  1. Upload JAR plugin (Only for ADMIN)

    curl --location --request POST 'localhost:8080/v1/plugin/reload'
    --header 'Authorization: Bearer auth_token'
    --form 'file=@"/Users/nikolaykolodyazhnii/TAC/plugin_tv_channel-1.0-SNAPSHOT.jar"'


  1. Get list of all channels (For ADMIN and USER)

    curl --location --request POST 'localhost:8080/v1/tv_channel/list'
    --header 'Authorization: Bearer auth_token'
    --header 'Content-Type: application/json'
    --data-raw '{ "duration": 40, "repetitionNumber": 221, "from": "2019-01-21T05:47:08", "to": "2019-01-23T05:47:08" }'


P.S.

JAR plugin for testing are located in scr/main/resources/files/plugin_tv_channel-1.0-SNAPSHOT.jar

You might also like...
An introductory dynamics to Test Driven Development (TDD)An introductory dynamics to Test Driven Development (TDD)

tdd-demo Nesse hands-on teremos uma dinâmica introdutória a Test Driven Development (TDD), ou desenvolvimento orientado por testes. instruções 1 - Clo

Gha-central-test - GitHub Actions Maven Central Test

GitHub Actions Maven Central Test Pushing a tag does a release. Local Maven Depl

A project that helps us generate the test project to test the Gradle plugin.

Ktlint Gradle Provides the function to generate a Gradle project for us to test your Gradle plugin Latest plugin version: [1.0.0] Table of content How

An interactive command line interface to a transactional key value store
An interactive command line interface to a transactional key value store

Transactional Key-Value Store An interactive command line interface to a transactional key value store. Commands: SET key value // store the value

Discord bot interface for Spring Initializr
Discord bot interface for Spring Initializr

Spring Initializr interface over Discord. Initialize your new Spring Boot project right in the app.

Simplify the processing of sealed class/interface

shiirudo Generates DSL to simplify processing branching by when expressions in sealed class/interface. Setup Refer to the KSP quickstart guide to make

Sample demonstrates use of Flow, StateFlow & how we can test Flow

FlowSample This sample demonstrates use of Flow, StateFlow & how we can test Flow. In Kotlin, Coroutine is just the scheduler part of RxJava but now w

API for a library using Kotlin, Spring-boot and covered by test

Library API This API is to create Books and be able to borrow from them I'm using: Spring Boot version 2.5.6 Kotlin 1.5.31 Java 11 I'm implementing us

Owner
null
A Certificate Authority with RESTful interface and WEB UI

minica A Certificate Authority with RESTful interface and WEB UI Home page View CA detail View Cert Detail With RESTful interface, you can manage cert

Wu Shilin 8 Nov 29, 2022
Test task from AppSelect company

Test task from AppSelect company

Chapaev Anton 0 Nov 22, 2021
🌱 A test implementation of a Minecraft server using RESTful API taking advantage of the interoperability between Kotlin and Java.

?? Norin A test implementation of a Minecraft server using RESTful API taking advantage of the interoperability between Kotlin and Java. This project

Gabriel 1 Jan 4, 2022
🪟 Pluggable Ktor plugin to implement Sentry for error handling and request contexts

?? Ktor Plugin for Sentry Pluggable Ktor plugin to implement Sentry for error handling and request contexts. What is this library? This basically impl

Noel 3 Dec 6, 2022
Starter project to create a simple RESTful web service in Kotlin

Modified: Adding Koin for DI Using JWT for authentication and authorization Dropping proprietary FlyAway tool Single Page Application support Starter

null 1 Oct 23, 2021
A simple (and naive) RESTful API made with Ktor, jasync-sql and JWT.

A simple (and naive) RESTful API made with Ktor, jasync-sql and JWT. Route Method Description /account POST Create a new account /account DELETE Delet

null 2 Nov 4, 2021
Provides Ktor Server libs for building awesome Kotlin plugins which needs to provide builtin HTTP servers

Ktor Plugin Provides Ktor Server libs for building awesome Kotlin plugins which needs to provide builtin HTTP servers. Requires: https://github.com/Po

null 0 Nov 13, 2021
Chain Relations is a small casual existential game about life, human needs and long-term relations.

Chain Relations Chain Relations is a small casual existential game about life, human needs and long-term relations. ChainRelations.360p.mp4 Game objec

Andrzej Novosiolov 4 Dec 2, 2022
A Modern Kotlin-Ktor RESTful API example. Connects to a PostgreSQL database and uses Exposed framework for database operations.

kotlin-ktor-rest-api A Modern Kotlin-Ktor RESTful API example. Connects to a PostgreSQL database and uses Exposed framework for database operations. F

Selim Atasoy 32 Dec 20, 2022
Restful Toolkit for IntelliJ IDEA

restful-toolkit Template ToDo list Create a new IntelliJ Platform Plugin Template project. Get known with the template documentation. Verify the plugi

KeepWalking... 56 Dec 14, 2022