Skip to content

peelle/rest_mvp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

REST MVP

This is some example code that shows how little code is needed to create a basic API using Catalyst.

To run

cd rest_mvp perl -I lib script/rest_mvp_server.pl -d -r

To test

I'm using a command line tool that comes with common with LWP modules, but Postman or whatever else should work fine as well.

GET http://0:3000/api/server_time

  • {"now":"Sat Apr 8 13:48:42 2023"}

POST http://0:3000/api/cap -c 'application/json' { "cool story": "bro" }

  • {"cool story":"bro"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages