Coder Social home page Coder Social logo

lab3's Introduction

PPKWU lab3

Rest API, które otrzymany ciąg znaków przekazuje do zadania 2 i zwraca rezultat w postaci jednego z trzech formatów: txt ("rodzaj znaków: %d\n...", json, xml i csv).

  • SKŁADNIA
ścieżkaApi/{tekst}/{format}
  • Parametry
{tekst} - ciąg znaków przekazywany do API z zadania 2
{format} - wybrany format text - json, xml lub csv
  • Metoda
GET
  • Przykład użycia JSON:
http://localhost:8081/api/ppkwu/lab3/TESt0912./json

wejście:

TESt0912.

wyjście:

{"UPPER":"3","LOWER":"1","OWN":"5","DIGIT":"4","SPECIAL":"1"}
  • Przykład użycia XML:
http://localhost:8081/api/ppkwu/lab3/TESt0912./xml

wejście:

TESt0912.

wyjście:

<StringHelper>
<upperCounter>3</upperCounter>
<lowerCounter>1</lowerCounter>
<digitCounter>4</digitCounter>
<specialCounter>1</specialCounter>
<ownCombinationCounter>5</ownCombinationCounter>
</StringHelper>
  • Przykład użycia TXT:
http://localhost:8081/api/ppkwu/lab3/TESt0912./txt

wejście:

TESt0912.

wyjście:

UPPER: 3 LOWER: 1 DIGIT: 4 SPECIAL: 1 OWN: 5
  • Przykład użycia CSV:
http://localhost:8081/api/ppkwu/lab3/TESt0912./csv

wejście:

TESt0912.

wyjście:

UPPER,LOWER,OWN,DIGIT,SPECIAL 3,1,5,4,1

lab3's People

Contributors

sublimacja avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.