All URIs are relative to https://oas.mieuxvoter.fr
Method | HTTP request | Description |
---|---|---|
postUserCollection | POST /users | Registers a new User. |
UserjsonldRead postUserCollection()
Registers a new User in the database. The email is optional and will help you reset a forgotten password.
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .RegistrationApi(configuration);
let body:.RegistrationApiPostUserCollectionRequest = {
// UserjsonldCreate | The new User resource (optional)
userjsonldCreate: {
email: "email_example",
username: "username_example",
password: "password_example",
},
};
apiInstance.postUserCollection(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userjsonldCreate | UserjsonldCreate | The new User resource |
UserjsonldRead
- Content-Type: application/ld+json, application/json, text/html
- Accept: application/ld+json, application/json, text/html
Status code | Description | Response headers |
---|---|---|
201 | User resource created | - |
400 | Invalid input | - |
404 | Resource not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]