Skip to content

tomek-jedro/user-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USER API

CREATE IMAGE

sbt docker:publishLocal

RUN APP WITH

cd docker && docker-compose up -d

DOCS

Example curl requests

[GET USER]

curl localhost:8080/api/user/1

[GET ALL USERS]

curl -X "GET" "localhost:8080/api/users"

[SELECT USERS (for more see docs)]

curl -X "POST" "localhost:8080/api/user/select?gender=male" -H "Content-Type: application/json" -d '{"page": 1, "pageSize": 50, "sortBy": [{"columnName": "id", "direction":"ASC"}]}'

[SAVE USER]

curl -X "POST" "localhost:8080/api/user" -H "Content-Type: application/json" -d '{"firstName": "Tom", "lastName": "Hanks", "gender": "male", "age": 55}'

[DELETE USER]

curl -X "DELETE" "localhost:8080/api/user/1"

[UPDATE USER]

curl -X "POST" "localhost:8080/api/user/1" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"firstName": "Tom", "lastName": "Hanks", "gender": "male", "age": 55}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published