A
A
Alexey Kopendakov2020-02-02 00:50:24
RESTful API
Alexey Kopendakov, 2020-02-02 00:50:24

How to correctly set date with time in rest api for data filtering (get method)?

Prompt in what format it is the best of all to transfer date with time in get request. In the form of timestamp or in human readable? If in human-readable, how to deal with spaces and colons?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-02-02
@alex_kag

There is no right or wrong - there is a contract. Good and experienced people use timestamp (it can be in milliseconds) because it does not depend on the time zone, but in some cases it can be safely ignored
PS if you directly answer the question about

how to deal with spaces and colons

then as with everything else - urlencode. There is a similar transformation in every language

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question