Show HN: MockREST – Create REST APIs from Your JSON Content
mockrest.com
mockrest.com
So, for a JSON like this:
{
"person": [
{
"id": 1,
"name": "John Smith",
"age": 22
},
{
"id": 2,
"name": "John Doe",
"age": 23
}
],
"post": [
{
"id": 1,
"title": "Hello World",
"format": "text"
},
{
"id": 2,
"title": "Goodbye Cruel World",
"format": "text"
}
]
}
It will allow you to access /api/person (/api/person/<id>/) and /api/post. You can use all HTTP verbs such as GET/POST/PUT and DELETE to change the information, and then access the modified json in the api backend.I've polished it a little bit, and I'm trying to see if there is a larger interest in this. If all goes well, I may add "pro" features such as longer sessions (the API tokens only last 24h for now), password protection, etc.
Hope you like it, let me know if you find any errors, or have comments or suggestions! Thanks!
Do you plan to open source this and/or try to commercialise it?
Edit: it's working now! All new tokens were having the expiration date incorrectly set.
Thanks for lettting me know!