Skip to content

Arkodiusz/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blog built with plain Java

About The Project

This is simple, standalone program with 5 accessible endpoints.
The goal was to build CRUD application without using any prefabricated frameworks.

Built With

  • Java
  • H2 database
  • Maven

Endpoints

GET /blog

Returns list of entries in blog table. (e.g. GET http://domain/blog)

POST /blog

There are three possibilities under this path when requesting with POST.
Selection of demanded operiation based on action query parameter.

QUERY PARAMETERS
  • String action - specifies demanded action. Available values are login, new or new_user.
  • String user - specifies username to test when action login is chosen.
  • String password - specifies password to test when action login is chosen OR password of created user when a new_user is chosen.
  • String username - specifies username of created user when a new_user is chosen.
  • String permission - specifies permission attribute of created user when action new_user is chosen.
  • String readonly - specifies readonly attribute of created user when action new_user is chosen.
  • String text - specifies text of new blog entry to save when action new_user is chosen.

DELETE /blog

Deletes element with given ID from blog table. (e.g. DELETE http://domain/blog?action=delete&id=1)

QUERY PARAMETERS
  • String action - specifies demanded action. Must be set to delete.
  • int id - specifies ID of element to be deleted.

Contact

Arkadiusz Jędrzejewski
arkadiusz.jedrzej@gmail.com

Links:

Releases

No releases published

Packages

No packages published

Languages