Skip to main content

5 posts tagged with "rested"

View All Tags

· 2 min read
Eduardo Marques

Hi everyone!

I have one more great update for you!

The past few weeks were spent on adding support for file uploads! That's right! Now, with RESTED_DEV you can also uploads files used in your application. How cool is that? As you can see I'm pretty excited about this!

Let me give you a quick introduction to this feature.

To upload files you don't need any special endpoint, you can create endpoint to upload file in the same way you did for data. The main difference, besides the files, is the Content-Type of the request, it must be multipart/form-data, and the files must be sent using the fieldname file and using FormData when uploading from the web.

And that's it, you can now upload files! Have a look at this example to see file uploads in action.

There are a few more things to consider:

  • You can upload up to 10 files in one request.
  • Each file can be up to 100MB.

The size occupied by the files in your endpoint will be shown on the Dashboard.

To find out more about this new update please check the docs for File Uploads.

I hope you find this update useful! In case of any questions, you can contact me directly or use our discord channel!

Take care!

· 2 min read
Eduardo Marques

Hi all!

For any REST API, operations like querying, sorting, filtering are a must have. In the beginning I assumed that it was good enough for the client to fetch all the data, and perform these operations on their side. This was good enough for a PoC or a PET project, but far from ideal for a production application, not only because of the size of the data transferred, but also had security implications, as some sensitive data could be exposed.

I wondered for a while what would be the best and quickest solution for this. Implementing all of this came through my head, but then I thought, this is a common problem and I'm sure there are existing solutions for this.

I was right! I came across JSONata, a really powerful library that did everything what I was looking for and more!

All I had to do was add support for JSONata expressions for GET requests and it worked perfectly.

How does it work? GET requests accept a new parameter called jsonata that accepts encoded JSONata expressions.

If you want to take full advantage of this library check out the official documentation on their page, or, to get started quickly, check the READ (GET) documentation and the JSONata documentation.

I hope you find these expressions useful. If you have any questions don't hesitate to reach out, after all, feedback is what makes any product great!

Take care and until the next one!

· One min read
Eduardo Marques

Hello everyone!

Wanted to give you a quick update and share with you my experience from this weekend, since it was craaazyy!!

I decided that it was good idea to start talking about RESTED_DEV in some platforms for developers, and since I'm a Reddit user I shared the service in the Javascript subreddit. And wow, I had an explosion of requests!

Service usage

This shows how important these communities are. After all, one of the hardest parts of building something it to get users in the beginning, so these platforms for sure help. I also enjoy dev.to and soon will start posting some articles there, so make sure you check it out.

And ah, remember to give something back, in my case I intend to share some of the things I'm learning during this project.

If you are interested in the post on Reddit, here you go: https://www.reddit.com/r/javascript/comments/l8omne/yawe_create_crud_endpoints_connected_to_a/.

Take care guys!

· One min read
Eduardo Marques

Hi all!

There’s a new feature available: Master Keys!!

Now, let me give you a bit of background why these keys are important.

I also use RESTED_DEV for other projects as it is a good way to test the service and see what’s missing. During one of those projects I realized that there was no way to access the data stored in secure endpoints, and the same for Authentication endpoints. Secure endpoints require you to be logged in, and Authentication endpoints data is only accessible to its creator.

This was problematic because, as a developer I might need to check the data stored, or modify it in case of problems.

TLDR: Master Keys allow you to access the data in all your endpoints, it removes the need for Access tokens or restrictions applied to Authentication endpoints.

And ah, one tip, don’t use Master keys directly in your application, it leaves the endpoint unprotected.

You can find more details in the Project documentation.

I hope you guys find this feature useful. If you have any questions don’t hesitate to contact us!

Stay safe!

· 2 min read
Eduardo Marques

Hi and welcome to RESTED_DEV!

I'm super excited to share RESTED_DEV with the world and I really hope it will help lots of people!

So, what is this service?

As many other developers I love to put my ideas into practice or simply explore the new tech that is out there, especially in the front-end world. But I always faced the same problem. To start a new project that required storing data I have to write a new back-end (or copy), and most of times it's either for authentication or to have CRUD endpoints.

So I decided to write a generic back-end that I could reuse for these projects. And yes, I'm sure you are thinking it, during development I actually realized that this could be helpful for other developers as well, and that's how RESTED_DEV was born, YOUR API WITH EASE!

Now, I do acknowledge that there are other solutions out there and more powerful than RESTED_DEV. For example Firebase. The difference is, with RESTED_DEV you use plain old HTTP requests, which I'm sure all of you are familiar with, and you are not required to learn a new library.

Who is this for?

For all developers who need a place to store data, without having to create a back-end service or manage a database. RESTED_DEV does it for you!


Do you have any questions? Don't hesitate to contact me at [email protected].

This is a platform made by developers for other developers. If you have suggestions, we are listening!

Stay tuned!!