Skip to content

RotaractAlumniMora/TrainLK-WebService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrainLK - Web Service


  • spring_boot_version: 1.5.2.RELEASE
  • java_version: 1.8
  • tomcat_version: 8.0.43
  • maven_version: 3.5

How to run

$ cd webservice
$ mvn clean install
$ mvn spring-boot:run

How to test

Get the API-KEY and ACCESS-TOKEN of Railway API v1.0, before you test and add it to environment variables of your system as follows:

APIKEY=<YOUR_API_KEY> ACCESSTOKEN=<YOUR_ACCESS_TOKEN_OF_RAILWAY_API>

The absolute URL should have the following structure.

<protocol>://<host>:<port>/<context_path>/<api_version>/<api_key>/<resource_path>

Add user to database
$ curl -d '{"name":"Chanaka", "email":"[email protected]"}' -H "Content-Type: application/json" -X POST http://localhost:8080/ws-mapmytrain/v1/C461D3C23C7E7264726A8D1DD5E/adduser

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages